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.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rayobrowse-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01f337859198e0773f29fb51c1ac0081835e7db940341c81f14cfb3299d4f15a
MD5 e695520fcdc74108c07befa976acb54a
BLAKE2b-256 8176c83a16fc6db385a0170e6938773cb4a0a2fe83107e59077b819999811db6

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