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.4.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.1.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: browserbase-0.1.4.tar.gz
  • Upload date:
  • Size: 5.0 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.4.tar.gz
Algorithm Hash digest
SHA256 e593110d647ceb4a29ce8f7e96abd4e673d09735c37e7e9abe18c8efe0be1343
MD5 4b41cf04cc6595e20d2c76d27f021c0f
BLAKE2b-256 c62ac5bef5eda3e53362599d359dc81f02b600dde7db27873877045410da7bf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: browserbase-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b7cc1eef65342d9ecad173727cc817f2713515afd016680c14b39a3771bcb5
MD5 66bf0ad95ea2538ca76b9d1a6532e8f7
BLAKE2b-256 b5bb60f83921b3b269ddac3e73c679925308d242807ace37ee1acd1cf4f24650

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