Skip to main content

Browserbase Python SDK

Project description

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.1.3.tar.gz (5.1 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.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: browserbase-0.1.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for browserbase-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5bae11b962cc9509774a80724af50e15502c2b46a73d91e17795f8df12248e42
MD5 7c6e2ae553cfb10f78759e96bad5485a
BLAKE2b-256 ea830f774965e987e0664fb3e115c58d29edb758335a463c6cc909becfdfde2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: browserbase-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for browserbase-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bbcc9e8236444cd9e03aaa5dea1aca5c60beac1968296bc43d68da25da34d0fb
MD5 a392150a1bb92ca622b31a7f2f8b8867
BLAKE2b-256 27007592ed0e13bb8f1c52ff36341e9d1b656722da4b294b808e91033b51c8bd

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