An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          




Browserbase logo


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)