bridgic-browser
Use when tasks involve browser automation with bridgic-browser via terminal CLI (`bridgic-browser ...`) or Python SDK (`from bridgic.browser.session import Browser`, `from bridgic.browser.tools import BrowserToolSetBuilder`). Trigger for navigation, scraping, form filling, accessibility snapshot refs, e2e checks, stealth browsing, CLI-SDK mapping/migration, and generating SDK code from CLI action steps. --- ## Prerequisite (Important!!) Before performing any operations, **MAKE SURE to use `uv`** to initialize the execution environment and install dependencies first. Note: DO NOT rely on any execution environment other than `uv`, to ensure the execution environment is isolated from the host machine. - **Initialize project**: `[ -f pyproject.toml ] || uv init --bare --python 3.10` - **Install dependencies**: `uv add --upgrade bridgic-browser`. - **Install browser binaries** (one-time): `uv run playwright install chromium` The CLI tools (`references/cli-guide.md`) and the Python SDK (`references/sdk-guide.md`) come from the **same package** — installing one installs both. ## Strategies & Guidelines (Important!!) When writing browser automation or web scraping code, **ALWAYS follow this "explore first, then coding" strategy**: - First, use the `bridgic-browser` CLI tools to explore the page structure. It is recommended to use headed mode with the command `bridgic-browser open --headed <url>` during exploration. - Then, use the `bridgic-browser` Python SDK to write the code.
Changelog: Source: GitHub https://github.com/bitsky-tech/bridgic-browser
No comments yet. Be the first one!