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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: browserbase-0.3.5.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.5.tar.gz
Algorithm Hash digest
SHA256 7e9c76fc99cb87dbf8754ec6995797bb56887164c1b5141ff93491c7e367280f
MD5 1a8a062e9bb07d2351373c80a71d4c0e
BLAKE2b-256 1ce10f2ba0e59841e214d4edf8ad06667ace0e6f186b24a48290b415480d1445

See more details on using hashes here.

File details

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

File metadata

  • Download URL: browserbase-0.3.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 202a16f50c26192369c5fdd49dc96b1b1bec20bcd0628f17e763b82298688c60
MD5 af54c98a76187b7949da7a9e89459188
BLAKE2b-256 8628b0ec3365468a4b99f963533c9539c5e0ed860b1535b16e06f45c37ebbba7

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