webcrawler-deep-crawl
它能做什么
这项技能会根据你给出的起始链接访问网站页面,并返回每个页面的干净文本、Markdown 和详细信息。适合为网站搭建知识库、搜索索引或聊天机器人内容的团队使用。
适用场景
- ✓当你想复制整个文档网站的内容时。
- ✓当你需要用公司博客或帮助中心的内容建立知识库时。
- ✓当你想把一个网站的所有页面集中保存成一组记录的时候。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/search-research/webcrawler-deep-crawl/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我抓取从 docs.example.com 开始的文档网站,最多 200 个页面,并给我每个页面的文字内容。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能从你给出的链接出发,在你设定的范围内逐层跟随页面链接。对每个页面,它会去掉菜单、页眉和页脚,返回主要文字以及标题、描述和指向外部的链接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Website Deep Crawl
Input: one or more start URLs (+ optional scope, depth, page-count, globs, removal selectors). Output: per-page records
{url, crawl, metadata, text, markdown, html, outboundLinks}for every page reached within scope.
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
From a small set of start URLs, breadth-first crawl every reachable in-scope page, strip boilerplate (navigation, header, footer, cookie banners, etc.), and emit per-page LLM-ready content (text / markdown / HTML) plus structured metadata — suitable for feeding RAG pipelines, vector databases, or chatbot knowledge bases.
Prerequisites
- One or more start URLs are provided by the caller.
- Target pages are publicly reachable, OR the running browser is already logged in for any pages behind authentication.
- A working directory is available for writing per-page JSON records and the crawl state file.
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current session → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
2. Login Verification (when prerequisites include login requirement)
If login status for the target site has been confirmed in the current session → skip this step.
Otherwise: open the target site and observe the page login status:
- Logout/sign-out entry, user avatar, or username exists → logged in, continue execution
- Login/register entry exists with no logout entry → not logged in, inform the user that login is needed first, assist the user in completing the login flow
User refuses or cannot log in → terminate execution.
Capability Components
This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the
scripts/directory, invoked viabrowser-act --session <name> eval "$(python scripts/xxx.py {params})".$(...)is bash syntax; use the bash tool for execution. Theevaltoken below refers to the browser-act CLIevalsubcommand — always include thebrowser-act --session <name>prefix and the"$(...)"substitution.
Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.
API: discover URLs from /llms.txt
Probes {origin}/llms.txt (a convention used by LLM-friendly documentation sites) and returns every URL it lists. Fast path — try this first.
eval "$(python scripts/discover-llms-txt.py 'https://example.com')"
Parameters:
- positional
origin: the site origin (scheme + host), e.g.https://docs.example.com
Output example:
{
"error": false,
"source": "llms.txt",
"count": 88,
"urls": ["https://docs.example.com/intro", "https://docs.example.com/install"]
}
On failure (file missing or HTTP error): {"error": true, "message": "llms.txt not available (HTTP 404)", "urls": []} — move on to sitemap discovery.
API: discover URLs from /sitemap.xml
Probes {origin}/sitemap.xml and {origin}/sitemap_index.xml, follows nested sitemap indexes, and collects every <loc> URL.
eval "$(python scripts/discover-sitemap.py 'https://example.com' --max-urls 5000)"
Parameters:
- positional
origin: site origin --max-urls: hard cap to stop ballooning sitemap indexes, default5000
Output example:
{
"error": false,
"source": "sitemap.xml",
"count": 86,
"urls": ["https://example.com/page-a", "https://example.com/page-b"]
}
On failure: {"error": true, "message": "No sitemap found at standard paths", "urls": []} — fall back to DOM link discovery.
DOM: discover URLs from the current page
Reads <a href> from the currently loaded page DOM, normalizes them to absolute URLs, drops fragments, asset extensions, and out-of-scope links, and optionally applies include / exclude glob filters. Use when llms.txt and sitemap are both unavailable, o
常见问题
我可以限制它抓取的范围吗?
可以。你可以设置抓取范围、深度和页面数量。
每个页面会返回哪些内容?
每个页面会附带它的网址、文字、Markdown、HTML、元数据,以及指向网站以外的链接。
它需要我登录吗?
只有需要登录才能访问的页面才需要。这种情况下,浏览器必须已经登录该网站。
详情
作者的原始描述
Deep-crawl any website from start URLs, return per-page LLM-ready text/markdown/HTML plus metadata (title, description, author, language, canonical URL, OG) and in-scope outbound links. Use when user mentions deep crawl website, recursive crawl, crawl a whole site, scrape entire website, scrape docs site, scrape documentation, scrape knowledge base, scrape blog, build RAG corpus, build vector database from website, knowledge base for chatbot, GPT knowledge files, llms.txt, sitemap crawl, BFS crawl, scrape with depth or page limit, include exclude URL globs, remove boilerplate, strip navigation
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14301
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。