https://github.com/browserbase/quickstart-selenium-python
Clone this repository to get started with Selenium (Python) and Browserbase.
https://github.com/browserbase/quickstart-selenium-python
headless-chrome selenium selenium-python
Last synced: 2 months ago
JSON representation
Clone this repository to get started with Selenium (Python) and Browserbase.
- Host: GitHub
- URL: https://github.com/browserbase/quickstart-selenium-python
- Owner: browserbase
- License: mit
- Created: 2024-05-06T10:35:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-23T08:37:03.000Z (about 1 year ago)
- Last Synced: 2025-10-25T11:18:59.321Z (6 months ago)
- Topics: headless-chrome, selenium, selenium-python
- Language: Python
- Homepage: https://docs.browserbase.com
- Size: 172 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Documentation
ย ยทย
Playground
# 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](https://docs.browserbase.com/under-the-hood) - Scalable, reliable browser infrastructure
- ๐ต๏ธ [Stealth Mode](https://docs.browserbase.com/features/stealth-mode) - Undetectable browser automation
- ๐ [Session Debugger](https://docs.browserbase.com/features/sessions) - 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
```bash
pip install -r requirements.txt
```
Alternatively, we suggest using [Poetry](https://python-poetry.org/) to manage your dependencies.
```bash
poetry install
```
### 2. Create `.env` file:
```bash
cp .env.example .env
```
### 3. Get your Browserbase API Key:
- [Create an account](https://www.browserbase.com/sign-up) or [log in to Browserbase](https://www.browserbase.com/sign-in)
- Copy your API Key and Project ID [from your Settings page](https://www.browserbase.com/settings) into the `.env` file
### 4. Run the script:
```bash
python main.py # or poetry run python main.py
```
## Further reading
- [Explore the Browserbase Python SDK](https://docs.browserbase.com/sdk/python)
- [Explore the Selenium Python API](https://selenium-python.readthedocs.io/api.html)