跳到正文
Skillpedia
网页抓取5.5k · #14817

wigolo-crawl

它能做什么

这项技能教智能体如何从一个网站(例如其文档)收集大量页面。它使用站点地图或链接跟随策略,只在选定的路径内操作,并遵守频率限制和 robots.txt。

适用场景

  • ✓当用户想为文档网站建立索引,以便之后阅读的时候。
  • ✓当用户要求获取网站某个路径下的全部页面的时候。
  • ✓当用户想把网站的文本批量复制并保存到本地缓存的时候。

技能链接

https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-crawl/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-crawl/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请爬取这个网站的文档,范围限制在 API 参考文件夹内,最多保存三十页。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会选择一种策略,例如站点地图、链接爬取或仅 URL 发现,并添加模式使爬取范围保持在限定之内。然后,它会在限制内抓取页面,并存入本地缓存。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

wigolo crawl

Crawl sites with configurable strategy, depth, and rate limiting. All pages enter the local cache with embeddings.

Quick Reference

// Crawl docs via sitemap (fastest, recommended for doc sites)
{ "url": "https://docs.example.com", "strategy": "sitemap", "max_pages": 30 }

// BFS crawl with scope filter
{ "url": "https://example.com", "strategy": "bfs", "max_depth": 3, "max_pages": 50, "include_patterns": ["^https://example\\.com/docs"] }

// URL discovery only (no content fetched — fastest for scoping)
{ "url": "https://example.com", "strategy": "map" }

// Authenticated crawl
{ "url": "https://app.example.com/docs", "strategy": "bfs", "use_auth": true, "max_pages": 20 }

Parameters

Parameter Type Default When to use
url string required Seed URL
strategy string "bfs" "sitemap" for doc sites, "map" for URL discovery only
max_depth number 2 How many link levels to follow
max_pages number 20 Hard cap on pages fetched
include_patterns string[] none Regex whitelist — ALWAYS add to stay in scope
exclude_patterns string[] none Regex blacklist
use_auth boolean false For authenticated sites
extract_links boolean false Return inter-page link graph
max_total_chars number 100000 Total char budget
max_tokens_out number none Token-budget cap (cl100k-base)
include_full_markdown boolean false Pages return evidence-only by default
citation_format string "numbered" "numbered" / "json" / "anthropic_tags"

Pages are dedup'd by canonical URL (anchor-fragment aware: /intro and /intro#install collapse to one entry).

After Crawling

All crawled pages enter the local cache with embeddings. This means:

  • cache({ query: "..." }) finds content instantly (no network).
  • find_similar({ url: "..." }) discovers related pages from cached content.
  • Future searches that hit cached URLs return instantly.

Crawl first, then use cache and find_similar for subsequent lookups.

Anti-Patterns

  • DON'T crawl max_pages: 100 without include_patterns — fetches nav/footer/sitemap noise.
  • DON'T use BFS on large doc sites — strategy: "sitemap" is faster and more complete.
  • DON'T crawl when you need one page — use fetch.

When NOT to use wigolo-crawl

  • Login-required crawl beyond what use_auth covers — handle authentication externally first, then crawl.

See Also

常见问题

它会遵守 robots.txt 吗?

会。这项技能说明,它会遵守 robots.txt 并应用频率限制。

如何让爬取范围保持在限定之内?

这项技能说明应添加包含模式,把爬取限制在正确的区域。

什么是站点地图策略?

它读取网站的站点地图,这通常是覆盖文档网站最快的方式。

详情

作者的原始描述

Local-first multi-page crawl with sitemap, BFS, DFS, and URL-map strategies, anchor-fragment dedup, rate limiting, robots.txt respect, and automatic local cache population. Use when the user wants to index documentation, crawl a docs site, extract all pages under a path, or says "crawl", "index this site", "get all the docs", "bulk extract". Prefer when crawled pages should land in a reusable local cache for later `cache` / `find_similar` queries.

repo: KnockOutEZ/wigolo

热度

GitHub 星标
5.5k
排名
#14817
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能