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.1.5.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.1.5.tar.gz.
File metadata
- Download URL: browserbase-0.1.5.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90b4f4590def3604f8b644ca0831b575fd05e182f96304097aaaa07d30f5aefa
|
|
| MD5 |
f2d3cd9a7808ee4d71f240b6e6bf9a17
|
|
| BLAKE2b-256 |
fe867999a34d843165b54a07562ac090f7bf17a8168b0699b70c342e99843679
|
File details
Details for the file browserbase-0.1.5-py3-none-any.whl.
File metadata
- Download URL: browserbase-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87165839c8f4bb8b9df87ae45da674620348be06481a897b247922df9cd5b4b1
|
|
| MD5 |
8d4cafb28e4d16df7fc01d24c887bedb
|
|
| BLAKE2b-256 |
449c40d610cee55e41ec8610016e911e6e61345ebd12bad33ae97ce82880f3f6
|