Browserbase Python SDK
Project description
DEPRECATED. Please refer to v1.0.0 at browserbase/sdk-python
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.3.6.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file browserbase-0.3.6.tar.gz
.
File metadata
- Download URL: browserbase-0.3.6.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d20d9490304e27c4cf84a9c119b0bce98d87ceaec298acac4a29c47058d367e |
|
MD5 | d6f0bf49d06e6b3ec8c17237e9600433 |
|
BLAKE2b-256 | ae9d5542bddca6924f1511f64835dca823b6bb3f943f9f90708885027340ad1c |
File details
Details for the file browserbase-0.3.6-py3-none-any.whl
.
File metadata
- Download URL: browserbase-0.3.6-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da3338302c34ecb6abda0534bc16663c7049a8bef2694db5a93ef05d2ba1d3c3 |
|
MD5 | e1d4d36ad2591fa2bffe24b54b903af7 |
|
BLAKE2b-256 | a9f66abb69ca84f327f455dcd9a455334d1224c196bd5ab3246c72da63b3a6af |