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.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for browserbase-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2080579b66ebeaa5025ce52d7c4ea640f00c8f143fee1537727d8d5733fb539 |
|
MD5 | 33c0f564eb909c0af717b7e56ab02793 |
|
BLAKE2b-256 | 41db603c06d5b7740302bfff77e38b4e70d3d31e990f95f9e3b311a34d8dd136 |