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.2.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.2.tar.gz.
File metadata
- Download URL: browserbase-0.1.2.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 |
d508ea88617c21d08bc2436b8a85cc6d7b191f7d2451d02bcb9cf28284905d00
|
|
| MD5 |
52c1fb9b8bae6d2eb953225b06a587ec
|
|
| BLAKE2b-256 |
cf0830cd9b6dfb12ea8480d72959705c219df535698205de34e7e28741f06d58
|
File details
Details for the file browserbase-0.1.2-py3-none-any.whl.
File metadata
- Download URL: browserbase-0.1.2-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 |
1160d701cf4f01fe504dd3785276b028a4e28ef595037f7de72a415357187972
|
|
| MD5 |
c976ab325d744a01dfc3e506bea99546
|
|
| BLAKE2b-256 |
683d2224dacaa7ebd214ee940482e37458f336fdb249817f23368aa636418363
|