browserbase / quickstart-selenium-python
Clone this repository to get started with Selenium (Python) and Browserbase.
README
<br/>
Selenium with Browserbase
Browserbase is the developer platform for reliable browser automation. Get complete control over headless browsers and leverage Browserbase's powerful features:
- ๐ Cloud Infrastructure - Scalable, reliable browser infrastructure
- ๐ต๏ธ Stealth Mode - Undetectable browser automation
- ๐ Session Debugger - Debug and replay browser sessions
Perfect for web automation, testing, and data collection.
Get started in under one minute with Selenium.
Setup
1. Install dependencies
pip install -r requirements.txt
Alternatively, we suggest using Poetry to manage your dependencies.
poetry install
2. Create .env file:
cp .env.example .env
3. Get your Browserbase API Key:
- Create an account or log in to Browserbase
- Copy your API Key and Project ID from your Settings page into the
.envfile
4. Run the script:
python main.py # or poetry run python main.py
