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.1.tar.gz
(5.1 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.1.tar.gz.
File metadata
- Download URL: browserbase-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e0bc2e4fecd31a892faa3b64ae61dd455884c16443a6c50e98dcda73811abf8
|
|
| MD5 |
226c4114b01d411d1ea9877e04859b59
|
|
| BLAKE2b-256 |
fb893d1096e8cdffddae567b7b9a4628a0fc0da98977dfada09ffd81c412d6ff
|
File details
Details for the file browserbase-0.1.1-py3-none-any.whl.
File metadata
- Download URL: browserbase-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 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 |
d478664f5941e3beccc61c5a041330ecb5bb9df9775643d53af19a6515b39c34
|
|
| MD5 |
ade3af81423d5a6b8a6bf4afcb5209c3
|
|
| BLAKE2b-256 |
dadc303b11029328fe0adf140577e44166465672e070e417e6419b4038d3b660
|