Skip to main content

Lightweight client SDK for the Rayobrowse stealth browser platform

Project description

Rayobrowse SDK

Lightweight Python SDK for the Rayobrowse stealth browser platform. Works with both local self-hosted instances and the Rayobrowse cloud service.

Installation

pip install rayobrowse

Quick Start

from rayobrowse import Rayobrowse
from playwright.sync_api import sync_playwright

client = Rayobrowse(endpoint="wss://cloud.rayobrowse.com", api_key="your-key")
ws_url = client.connect_url(os="windows", proxy="http://user:pass@host:port")

with sync_playwright() as p:
    browser = p.chromium.connect_over_cdp(ws_url)
    page = browser.new_page()
    page.goto("https://example.com")
    print(page.title())
    browser.close()

Local Usage (Docker)

from rayobrowse import Rayobrowse
from playwright.sync_api import sync_playwright

client = Rayobrowse()  # defaults to ws://localhost:9222
ws_url = client.connect_url(os="windows")

with sync_playwright() as p:
    browser = p.chromium.connect_over_cdp(ws_url)
    page = browser.new_page()
    page.goto("https://example.com")
    browser.close()

Documentation

Full documentation, API reference, and integration guides are available at docs.rayobrowse.com.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

rayobrowse-2.0.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file rayobrowse-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: rayobrowse-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for rayobrowse-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79b85465f99170a8cd28c568470d4fba2182a100292b869709f5cdd518089891
MD5 3fdea27e8dbc277165d497c659afbc6b
BLAKE2b-256 d1103f520a9e6769bd96828fee1577e53682160a4f7ae08c091b02cff003b3fc

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