360 Secure SkillHub
360 安全技能中心

Anycrawl

该 Skill 封装 AnyCrawl 命令行工具,提供四类操作:search 查找页面(可加 --scrape 直接取正文)、scrape 抓取指定 URL、map 发现站内 URL、crawl 批量抓取站点或目录区块。默认 playwright 引擎,结果输出为便于 LLM 使用的 Markdown,可用 -o 写入 .anycrawl/ 目录。使用前需安装并完成认证,例如登录或设置 ANY…

qthans
qthans
热度 87.51
最近更新 2026-05-11 17:32:20
分类:搜索依赖:代码执行 / 读写文件 / 第三方 API应用场景:研究 / 工作流 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add anycrawl-cli
Metadata
name
anycrawl
description
Web scraping, search, crawling, and site mapping via the AnyCrawl CLI. Use when the user wants to search the web, scrape a page, find URLs on a site, or bulk extract content. Returns clean LLM-optimized markdown. Must be pre-installed and authenticated.
allowed-tools
["Bash(anycrawl *)","Bash(npx anycrawl *)"]

AnyCrawl CLI

Web scraping, search, and crawling CLI. Returns clean markdown optimized for LLM context windows. Default engine: playwright.

Run anycrawl --help or anycrawl <command> --help for full option details.

Prerequisites

Must be installed and authenticated. Run anycrawl login or set ANYCRAWL_API_KEY.

If not ready, see rules/install.md. For output handling guidelines, see rules/security.md.

Commands

  • Search - No specific URL yet. Find pages, answer questions. Use --scrape to get full page content with results.
  • Scrape - Have a URL. Extract its content directly.
  • Map - Need to locate a specific page on a site. Discover URLs, then scrape the ones you need.
  • Crawl - Need bulk content from a site or section. Use crawl directly — no need for map first.
Need Command When
Find pages on a topic search No specific URL yet
Get a page's content scrape Have a URL
Find URLs within a site map Need to locate a specific subpage
Bulk extract a site section crawl Need many pages (e.g., all /docs/)

For detailed command reference, run anycrawl <command> --help (e.g., anycrawl search, anycrawl scrape).

Avoid redundant fetches: search --scrape already fetches full page content. Don't re-scrape those URLs. Check .anycrawl/ for existing data before fetching again.

Output & Organization

Write results to .anycrawl/ with -o. Add .anycrawl/ to .gitignore. Always quote URLs in shell commands. Never read entire output files at once — use grep, head, or incremental reads.

Documentation