Skip to main content

ricibrowser

A lightweight two-engine browser automation module built entirely on the Chrome DevTools Protocol (CDP). No Playwright, no Puppeteer, no selenium.

Engines

Engine Use case Technology
Lightpanda (fast path) crawl, recon, endpoint discovery, non-JS-heavy targets Zig-based headless engine, CDP at ws://127.0.0.1:9222
CDP-Chrome (thorough path) DAST, JS-heavy targets, auth flows, anti-bot Custom CDP client driving the user's real installed Chrome

Install

pip install ricibrowser

# For the fast path (optional):
bash scripts/install_lightpanda.sh
lightpanda serve --host 127.0.0.1 --port 9222

# For the thorough path:
# Just have Google Chrome installed on your system.

Quick start

import asyncio
from ricibrowser import Engine, EngineConfig

async def main():
    engine = Engine(EngineConfig())

    # Fast path (Lightpanda) — crawl/recon
    page = await engine.fast_browse("https://example.com")
    print(f"Title: {page.title}")
    print(f"Text: {page.text[:200]}")
    print(f"Links: {len(page.links)}")

    # Thorough path (CDP-Chrome) — DAST/auth flows
    session = await engine.create_session()
    await session.navigate("https://example.com/login")
    await session.fill("#username", "admin")
    await session.fill("#password", "pass")
    await session.click("#login-btn")

    # Cookies persist across sessions via CookieJar
    await session.navigate("https://example.com/dashboard")  # authenticated!

    # JS evaluation in isolated world (never Runtime.enable on main world)
    count = await session.evaluate("document.querySelectorAll('script').length")

    # Network capture (opt-in, off by default)
    engine2 = Engine(EngineConfig(debug_network=True))
    session2 = await engine2.create_session()
    # ... browse ...
    flows = engine2.network.to_dict()

    await engine.close()

asyncio.run(main())

Stealth

  • navigator.webdriver suppressed via --disable-blink-features=AutomationControlled (Blink-level, not JS injection)
  • Uses the user's real installed Chrome (not bundled Chromium) — TLS/JA3 fingerprint matches a real Chrome release
  • Never calls Runtime.enable on the main world — isolated worlds only
  • Console.enable off by default — only enabled in explicit debug mode
  • Network.enable off by default — known CDP detection vector

Architecture

See ARCHITECTURE.md for the full design.

License

MIT

Release files for ricibrowser 0.2.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ricibrowser 0.2.10
File Size Uploaded
ricibrowser-0.2.10.tar.gz 52.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ricibrowser 0.2.10
File Interpreter ABI Platform
ricibrowser-0.2.10-py3-none-any.whl Python 3 none any Details

Total release size: 105.1 kB

Release files / ricibrowser-0.2.10.tar.gz

Download URL ricibrowser-0.2.10.tar.gz
Size 52.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a9fde3f3389c998aecca8f83a87ef7b48b948c1ada832aef5de90e74334f0b38
BLAKE2b-256 checksum
How to use checksums
b16d2dc38d4f50cdb352c40505f81d1e6cfb97000cc8e97ebcf567d328295b04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / ricibrowser-0.2.10-py3-none-any.whl

Download URL ricibrowser-0.2.10-py3-none-any.whl
Size 52.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b76b3b7cb2efa463cc4f3cd2c0fff09d49c7a4b645c919dd456c97ca8f373f47
BLAKE2b-256 checksum
How to use checksums
812b73aa24b2b6b6194e44587a6965c9b656587ea97e168c3d71ff6d7de01ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.2.29

2 release files

0.2.28

2 release files

0.2.27

2 release files

0.2.26

2 release files

0.2.25

2 release files

0.2.23

2 release files

0.2.22

2 release files

0.2.21

2 release files

0.2.20

2 release files

0.2.19

2 release files

0.2.18

2 release files

0.2.12

2 release files

0.2.11

2 release files

This release

0.2.10 This release

2 release files

0.2.9

2 release files

0.2.8

1 release file

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page