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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for browserbase-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2ec31641fab0a9ec3b2f23ed0244f01e3b35423806c1c6665d68706133958b07
MD5 5bbae3eed48ab981aa35bb850b55d163
BLAKE2b-256 2bb2efdee24a7cb6848f06d28c49b67ecc1df9f6b4d8bf6e4ceb217662d1690a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: browserbase-0.3.0-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.6

File hashes

Hashes for browserbase-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16fe6f0b1fc55aca050bbabf76cd17d83ee1a798d9bba274b09421ca120b5ec3
MD5 723ce3fc8b8d319ea5b4e059a6b31fad
BLAKE2b-256 b0c0b7333421cf6ba4d70f20185506ef46e96467191ebed394f8cf4fb87a3729

See more details on using hashes here.

Supported by

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