/quickstart-playwright-python

Clone this repository to get started with Playwright and Browserbase.

Primary LanguagePythonMIT LicenseMIT

Browserbase logo

Documentation  ·  Playground


Playwright with Browserbase

Introduction

Browserbase is the best developer platform to reliably run, manage, and monitor headless browsers.

Get browsers' complete control and leverage Browserbase's Infrastructure, Stealth Mode, and Session Debugger to power your automation, test suites, and LLM data retrievals.

Get started in under one minute with Playwright.

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:

4. Run the script:

python main.py # or poetry run python main.py

Further reading