browse
由 pkiv 提供
Coding Agents & IDEs简介
Complete guide for creating and deploying browser automation functions.
描述
该技能的功能
Automates web browser interactions from the CLI using the browse command. Works with a local Chrome instance by default or a remote Browserbase session when API credentials are provided. Remote mode adds automatic CAPTCHA solving, anti-bot stealth, and residential proxies for sites with bot protection.
Unlike custom headless browser scripts, it handles CAPTCHA solving and anti-bot fingerprinting automatically through remote Browserbase sessions without requiring any browser driver setup.
何时使用
- Scraping prices from sites with bot detection or Cloudflare protection
- Filling and submitting web forms on external sites
- Extracting data from JavaScript-rendered dashboards
- Taking page screenshots for visual regression or documentation
- Automating login flows and session-based web interactions
示例工作流
User asks: Get the current stock price from a financial site that blocks scrapers
- 1
Switches to remote mode with
browse env remoteto enable stealth and CAPTCHA handling - 2
Opens the target page with
browse open <url> - 3
Runs
browse snapshotto read the accessibility tree and locate the price element ref - 4
Extracts the price text with
browse get text <selector> - 5
Stops the session with
browse stop
Stock price text extracted from the bot-protected page
前置要求
- BROWSERBASE_API_KEY environment variable
- BROWSERBASE_PROJECT_ID environment variable
- Browserbase account at browserbase.com/settings
安装
clawhub install pkiv/browse运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。