go-rod-master
它能做什么
这个智能体可以帮你使用 Go 语言自动化网页浏览器中的任务。它可以从网站中提取信息、模拟用户操作,还会尝试避免被识别为机器人。
适用场景
- ✓当你需要自动从网站收集数据时。
- ✓当你想测试某个网站的运行方式时。
- ✓当你需要程序像真人一样与网站交互时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/go-rod-master/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“抓取 'example.com' 首页的标题和所有链接。”
每周 5 个新技能,1 分钟读完。
工作原理
它使用一个名为 'go-rod' 的工具,在后台控制浏览器(例如 Chrome)。这样它就能导航、点击并读取网页内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Go-Rod Browser Automation Master
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use This Skill
- Use when the user asks to scrape, automate, or test a website using Go.
- Use when the user needs a headless browser for dynamic/SPA content (React, Vue, Angular).
- Use when the user mentions stealth, anti-bot, avoiding detection, Cloudflare, or bot detection bypass.
- Use when the user wants to work with the Chrome DevTools Protocol (CDP) directly from Go.
- Use when the user needs to intercept or hijack network requests in a browser context.
- Use when the user asks about concurrent browser scraping or page pooling in Go.
- Use when the user is migrating from chromedp or Playwright Go and wants a simpler API.
Safety & Risk
Risk Level: 🔵 Safe
- Read-Only by Default: Default behavior is navigating and reading page content (scraping/testing).
- Isolated Contexts: Browser contexts are sandboxed; cookies and storage do not persist unless explicitly saved.
- Resource Cleanup: Designed around Go's
deferpattern — browsers and pages close automatically. - No External Mutations: Does not modify external state unless the script explicitly submits forms or POSTs data.
Examples
See the examples/ directory for complete, runnable Go files:
examples/basic_scrape.go— Minimal scraping exampleexamples/stealth_page.go— Anti-detection with go-rod/stealthexamples/request_hijacking.go— Intercepting and modifying network requestsexamples/concurrent_pages.go— Page pool for concurrent scraping
Limitations
- CAPTCHAs: Rod does not include CAPTCHA solving. External services (2captcha, etc.) must be integrated separately.
- Extreme Anti-Bot: While
go-rod/stealthhandles common detection (WebDriver, plugin fingerprints, WebGL), extremely strict systems (some Cloudflare configurations, Akamai Bot Manager) may still detect automation. Additional measures (residential proxies, human-like behavioral patterns) may be needed. - DRM Content: Cannot interact with DRM-protected media (e.g., Widevine).
- Resource Usage: Each browser instance consumes significant RAM (~100-300MB+). Use
PagePooland limit concurrency on memory-constrained systems. - Extensions in Headless: Chrome extensions do not work in headless mode. Use
Headless(false)with XVFB for server environments. - Platform: Requires a Chromium-compatible browser. Does not support Firefox or Safari.
常见问题
什么是“无头浏览器”?
它是一种不显示窗口的浏览器,可以在后台运行。适合在服务器上自动执行任务,或者当你不需要看到运行过程时使用。
它能绕过所有机器人检测吗?
它会尽量伪装自动化操作,以避开常见的检测手段,但对于非常先进的系统,仍然可能被识别为机器人。
我能用它来破解验证码吗?
不能,这个智能体不会解决验证码。如需处理验证码,你需要借助其他专门的服务。
详情
作者的原始描述
Comprehensive guide for browser automation and web scraping with go-rod (Chrome DevTools Protocol) including stealth anti-bot-detection patterns.
热度
- GitHub 星标
- 48k
- 排名
- #4762
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。