数据库查询工具
自动SSH隧道管理的
Stealth Browser 是一套多层防护的浏览器自动化方案,整合指纹伪装、Cloudflare绕过、验证码自动处理及会话持久化能力,用于需要规避机器人检测的网页自动化场景。
1. 安装核心依赖
npm install -g puppeteer-extra puppeteer-extra-plugin-stealth
npm install -g playwright
pip install undetected-chromedriver DrissionPage
2. 首次登录网站(必须显示模式)
python scripts/stealth_session.py -u "https://target.com/login" -s sitename --headed
在可见窗口中手动完成登录,确认后保存:
python scripts/stealth_session.py -u "https://target.com" -s sitename --headed --save
3. 后续自动化(无头模式加载会话)
python scripts/stealth_session.py -u "https://target.com" -s sitename --load
会话文件存储位置:~/.clawdbot/browser-sessions/<sitename>.json
4. 可选配置
验证码API密钥存放于 ~/.clawdbot/secrets/captcha.json;代理配置存放于 ~/.clawdbot/secrets/proxies.json
见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | 目标网址URL、站点标识名、运行模式参数、可选验证码API密钥、可选代理配置 |
| 输出 | 页面抓取内容、会话JSON文件、操作日志、任务进度状态 |
| 适用人群 | 需绕过反爬机制的开发者、需持久登录的自动化运维人员、采集Cloudflare保护站点数据的技术人员 |
| 不包含 | GUI浏览器教学、现成账号密码、人工打码服务、法律合规咨询 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/mayuqi-crypto/stealth-browser/SKILL.md
来源类型:GitHub仓库