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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: browserbase-0.3.4.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.4.tar.gz
Algorithm Hash digest
SHA256 5cbcde9ec80f807ad1fb6e539e3e928edca2da1f07cac7e23c7c483e8fd519bd
MD5 47c96199fa386f8310509cebde820a3b
BLAKE2b-256 76c481b3a17a545175bf0d9d53eb2419a34be2cb2f29613309b766844cdcbab1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: browserbase-0.3.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0ef0dc4c3a3f662b13561896d2a4c6fc9576e203906ab014927be08cf4953955
MD5 5275e7117431dcdb881d3e764525b0c3
BLAKE2b-256 fdb07ad7dbc7b506dbb74e96e4ad09ce01d6467dcb871285dca4f5a6c4e19509

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