Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 620 Bytes

File metadata and controls

39 lines (25 loc) · 620 Bytes

Browser Use Screenshotter Example

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.

Setup

  1. Install dependencies:
uv sync
  1. Set up environment variables:
cp example.env .env
  1. Edit .env and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here

Usage

uv run python main.py <URL>

Example:

uv run python main.py https://example.com

Screenshots are saved to the screenshots/ directory.