Skip to main content

Browserbase Python SDK

Project description

Browserbase logo

Documentation  ·  Playground


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


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.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

browserbase-0.3.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file browserbase-0.3.3.tar.gz.

File metadata

  • Download URL: browserbase-0.3.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for browserbase-0.3.3.tar.gz
Algorithm Hash digest
SHA256 29cbf1a1efcd51429fcb7f1e56bdd253772a52c5451d765a77e27157e7e742a4
MD5 68b40e705882853ead5e0b50fd1fdcb5
BLAKE2b-256 47abd0c85d85ed51dc8e17d84e66f68fc8232c70bce6ec252e68b1bc6264a052

See more details on using hashes here.

File details

Details for the file browserbase-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: browserbase-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for browserbase-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 116fe68b191023eccb7dbc33e59afda1e9c7741cd523fe57b9118ebfcac7b21a
MD5 f05665cb3194fec15e05472863b6fc3d
BLAKE2b-256 4ad4cd0b8f2808fa97ab97f428ef99c6983e026bccb8007b32ee3bc9a536457a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page