This is a stripped down example of how to take full page screenshots with Chrome DevTools Protocol when using browser-use.
For more context, see ABOUT.md.
- Install dependencies:
uv sync- Set up environment variables:
cp example.env .env- Edit
.envand add your OpenAI API key:
OPENAI_API_KEY=your_api_key_hereuv run python main.py <URL>Example:
uv run python main.py https://example.comScreenshots are saved to the screenshots/ directory.