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-haystack
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.0.9.tar.gz
(3.6 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.0.9.tar.gz.
File metadata
- Download URL: browserbase-0.0.9.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25ec820c518d53110eb7bc80cc48f78c602bd3cc820f88e1e1f57ece4d726c87
|
|
| MD5 |
6869b00f8a5c3a0afedb98c3edffc754
|
|
| BLAKE2b-256 |
4b1ef9d179f517e95bcb0f483c136a86e0a1dbb0c9c99a9687f8de3cfab2e936
|
File details
Details for the file browserbase-0.0.9-py3-none-any.whl.
File metadata
- Download URL: browserbase-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.3 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 |
9a2fb10273fe013084e483f0fa5c91f852ec6ba466b8c12a632da6f5875e4796
|
|
| MD5 |
140a0fd0099e83ecd93268c321584aba
|
|
| BLAKE2b-256 |
a3d2fed48867f8c5b433b194852dd0ece58387941eb0293a76f5c5ffe1955695
|