Browserbase Python SDK
Project description
Browserbase Python SDK
Browserbase is a serverless platform for running headless browsers, it offers advanced debugging, session recordings, stealth mode, integrated proxies and captcha solving.
Installation and setup
- Get an API key from browserbase.com and set it in environment variables (
BROWSERBASE_API_KEY). - Install the required dependencies:
pip install browserbase
Usage
from browserbase import Browserbase
# Init the SDK
browserbase = Browserbase(os.environ["BROWSERBASE_API_KEY"])
# Load a webpage
result = browserbase.load("https://example.com")
# Load multiple webpages (returns iterator)
result = browserbase.load(["https://example.com"])
# Text-only mode
result = browserbase.load("https://example.com", text_content=True)
# Screenshot (returns bytes)
result = browserbase.screenshot("https://example.com", full_page=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
browserbase-0.2.0.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file browserbase-0.2.0.tar.gz.
File metadata
- Download URL: browserbase-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f395da0ee0f32ab225f7f9f1232308afe4b6f1ee9370217dd78e6306b73bad9
|
|
| MD5 |
72bd0bf14c9bc6f7341fbf405d37abbb
|
|
| BLAKE2b-256 |
34fa42e898fe433a1c1341f2e37542b8d88e59503fa20b48c10a208d4eb8a703
|
File details
Details for the file browserbase-0.2.0-py3-none-any.whl.
File metadata
- Download URL: browserbase-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01503a2f5268e8beab770655e18648c1bb7a92ade8d92e8ba461440159df9648
|
|
| MD5 |
56a27f72dd4b649cd6353261b844abd8
|
|
| BLAKE2b-256 |
86ab96e160f1be0514fe36b928870357bba15e838b7aa1572d2ce4fd7525dbc1
|