Skip to main content

Browserbase Python SDK

Project description

DEPRECATED. Please refer to v1.0.0 at browserbase/sdk-python

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

Uploaded Source

Built Distribution

browserbase-0.3.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for browserbase-0.3.6.tar.gz
Algorithm Hash digest
SHA256 1d20d9490304e27c4cf84a9c119b0bce98d87ceaec298acac4a29c47058d367e
MD5 d6f0bf49d06e6b3ec8c17237e9600433
BLAKE2b-256 ae9d5542bddca6924f1511f64835dca823b6bb3f943f9f90708885027340ad1c

See more details on using hashes here.

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

Hashes for browserbase-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 da3338302c34ecb6abda0534bc16663c7049a8bef2694db5a93ef05d2ba1d3c3
MD5 e1d4d36ad2591fa2bffe24b54b903af7
BLAKE2b-256 a9f66abb69ca84f327f455dcd9a455334d1224c196bd5ab3246c72da63b3a6af

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