@Jolyne_AI: 又在 GitHub 挖到一款高性能爬虫/抓取利器:AnyCrawl,把数据采集这件事做得更省心、更高效。 它把 Cheerio、Playwright、Puppeteer 三种引擎打包到一起:静态页面秒解析,复杂 JavaScript 渲染…
摘要
AnyCrawl 是一款高性能开源爬虫/抓取工具,集成了 Cheerio、Playwright、Puppeteer 三种引擎,支持静态解析与 JS 渲染、SERP 批量抓取、站点级爬虫、多线程/多进程并发、代理支持,并针对 LLM 数据采集优化输出格式。
查看缓存全文
缓存时间: 2026/07/03 14:38
又在 GitHub 挖到一款高性能爬虫/抓取利器:AnyCrawl,把数据采集这件事做得更省心、更高效。
它把 Cheerio、Playwright、Puppeteer 三种引擎打包到一起:静态页面秒解析,复杂 JavaScript 渲染也能稳稳拿下,还支持批量抓取 Google 等搜索结果。
GitHub:http://github.com/any4ai/anycrawl
核心能力一览:
- 多引擎切换:静态解析与 JS 渲染按需切换
- SERP 抓取:批量采集 Google 等搜索引擎结果
- 站点级爬虫:单页抓取到整站智能遍历,一套搞定
- 高性能并发:多线程/多进程架构,任务量上来照样跑得快
- 代理支持:内置 HTTP / SOCKS 代理,适配更多网络环境
- 面向 LLM:为大模型数据处理优化输出格式,减少二次清洗成本
同时支持 Docker 一键部署,配置轻量,上手快,并配有清晰的使用文档。
any4ai/anycrawl
Source: https://github.com/any4ai/anycrawl
Sponsors
Swiftproxy(https://www.swiftproxy.net/?ref=AnyCrawl) — High-performance residential proxies built for scraping, automation, and large-scale data collection. Access 80M+ rotating residential IPs across 195+ countries with stable connections, high anonymity, and developer-friendly integration. Ideal for AI agents, crawlers, browser automation, and anti-bot bypass workflows. Free trial available. Use code PROXY90 for an exclusive 10% discount.
AtlasCloud(https://www.atlascloud.ai/?utm_source=github&utm_medium=sponsor&utm_campaign=AnyCrawl) — Atlas Cloud gives developers one API for 300 plus models, covering video, image, and LLM. It includes DeepSeek, GPT, Claude, Flux, Kling, and Seedance.📖 Overview
AnyCrawl is a high‑performance crawling and scraping toolkit:
- SERP crawling: multiple search engines, batch‑friendly
- Web scraping: single‑page content extraction
- Site crawling: full‑site traversal and collection
- High performance: multi‑threading / multi‑process
- Batch tasks: reliable and efficient
- AI extraction: LLM‑powered structured data (JSON) extraction from pages
LLM‑friendly. Easy to integrate and use.
🚀 Quick Start
📖 See full docs: Docs
Generate an API Key (self-host)
If you enable authentication (ANYCRAWL_API_AUTH_ENABLED=true), generate an API key:
pnpm --filter api key:generate
# optionally name the key
pnpm --filter api key:generate -- default
The command prints uuid, key and credits. Use the printed key as a Bearer token.
Run Inside Docker
If running AnyCrawl via Docker:
- Docker Compose:
docker compose exec api pnpm --filter api key:generate
docker compose exec api pnpm --filter api key:generate -- default
- Single container (replace <container_name_or_id>):
docker exec -it <container_name_or_id> pnpm --filter api key:generate
docker exec -it <container_name_or_id> pnpm --filter api key:generate -- default
📚 Usage Examples
💡 Use the Playground to test APIs and generate code in your preferred language.
If self‑hosting, replace
https://api.anycrawl.devwith your own server URL.
Web Scraping (Scrape)
Example
curl -X POST https://api.anycrawl.dev/v1/scrape \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_ANYCRAWL_API_KEY' \
-d '{
"url": "https://example.com",
"engine": "cheerio"
}'
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
| url | string (required) | The URL to be scraped. Must be a valid URL starting with http:// or https:// | - |
| engine | string | Scraping engine to use. Options: cheerio (static HTML parsing, fastest), playwright (JavaScript rendering with modern engine), puppeteer (JavaScript rendering with Chrome) | cheerio |
| proxy | string | Proxy URL for the request. Supports HTTP and SOCKS proxies. Format: http://[username]:[password]@proxy:port | (none) |
| max_age | number | Cache control (ms). 0 = force refresh (skip cache read); > 0 = accept cached content within this age; omit to use default. | (none) |
| store_in_cache | boolean | Cache control. Whether to store the result in cache. To bypass cache reads, use max_age=0. | true |
More parameters: see Request Parameters.
Cache details (self-host / S3 / map index): see docs/cache.md.
Browser Runtime
The public scrape and crawl engine values remain cheerio, playwright, and puppeteer. For self-hosted browser engines, playwright and puppeteer are launched through CloakBrowser by default; callers should not send a cloakbrowser engine value.
CloakBrowser requires Node.js 20 or newer. Docker images pre-install its browser binary during image build. For local or custom deployments, set CLOAKBROWSER_CACHE_DIR to a stable writable path and CLOAKBROWSER_AUTO_UPDATE=false to avoid browser downloads during worker startup. If you manage the binary yourself, set CLOAKBROWSER_BINARY_PATH.
LLM Extraction
curl -X POST "https://api.anycrawl.dev/v1/scrape" \
-H "Authorization: Bearer YOUR_ANYCRAWL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"json_options": {
"schema": {
"type": "object",
"properties": {
"company_mission": { "type": "string" },
"is_open_source": { "type": "boolean" },
"employee_count": { "type": "number" }
},
"required": ["company_mission"]
}
}
}'
Atlas Cloud Provider
AnyCrawl supports Atlas Cloud as an OpenAI-compatible LLM provider for extraction and summarization workloads.
- Official site: Atlas Cloud
- LLM base URL:
https://api.atlascloud.ai/v1 - Recommended env model format:
atlascloud/deepseek-v3
ATLASCLOUD_BASE_URL=https://api.atlascloud.ai/v1
ATLASCLOUD_API_KEY=your-atlascloud-api-key
DEFAULT_LLM_MODEL=atlascloud/deepseek-v3
DEFAULT_EXTRACT_MODEL=atlascloud/deepseek-v3
If you prefer file-based AI config, add an atlascloud provider entry in ai.config.json and map it to any Atlas Cloud model exposed through the OpenAI-compatible chat API.
Site Crawling (Crawl)
Example
curl -X POST https://api.anycrawl.dev/v1/crawl \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_ANYCRAWL_API_KEY' \
-d '{
"url": "https://example.com",
"engine": "playwright",
"max_depth": 2,
"limit": 10,
"strategy": "same-domain"
}'
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
| url | string (required) | Starting URL to crawl | - |
| engine | string | Crawling engine. Options: cheerio, playwright, puppeteer | cheerio |
| max_depth | number | Max depth from the start URL | 10 |
| limit | number | Max number of pages to crawl | 100 |
| strategy | enum | Scope: all, same-domain, same-hostname, same-origin | same-domain |
| include_paths | array | Only crawl paths matching these patterns | (none) |
| exclude_paths | array | Skip paths matching these patterns | (none) |
| scrape_options | object | Per-page scrape options (formats, timeout, json extraction, etc.), same as Scrape options | (none) |
More parameters and endpoints: see Request Parameters.
Search Engine Results (SERP)
Example
curl -X POST https://api.anycrawl.dev/v1/search \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_ANYCRAWL_API_KEY' \
-d '{
"query": "AnyCrawl",
"limit": 10,
"engine": "google",
"lang": "all"
}'
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
query | string (required) | Search query to be executed | - |
engine | string | Search engine to use. Options: google | |
pages | integer | Number of search result pages to retrieve | 1 |
lang | string | Language code for search results (e.g., ‘en’, ‘zh’, ‘all’) | en-US |
Supported search engines
❓ FAQ
- Can I use proxies? Yes. AnyCrawl ships with a high‑quality default proxy. You can also configure your own: set the
proxyrequest parameter (per request) orANYCRAWL_PROXY_URL(self‑hosting). - How to handle JavaScript‑rendered pages? Use the
PlaywrightorPuppeteerengines.
🤝 Contributing
We welcome contributions! See the Contributing Guide.
Backers
Support us with a monthly donation and help us continue our activities. [Become a backer]
📄 License
MIT License — see LICENSE.
🎯 Mission
We build simple, reliable, and scalable tools for the AI ecosystem.
相似文章
@IndieDevHailey: Crawl4AI:7万星开源神器,把网页秒变LLM能吃的干净Markdown! 再见付费爬虫!零API Key,几秒出结构化数据,专为RAG、Agent、数据管道而生。 超干净输出:智能去噪、表格/代码/引用全保留,LLM直接喂 真快:异…
Crawl4AI 是一个开源的网页爬虫工具,能将网页内容转换为干净的 Markdown 格式,专为 LLM 的 RAG、Agent 和数据管道设计。零 API Key,快速输出结构化数据。
@axichuhai: 兄弟们,这个开源项目直接开了上帝视角,把爬虫效率直接拉高数十倍,已经登顶 GitHub 热榜,5w+ star 数。 以前抓数据要写代码、维护选择器、对付各种反爬机制,现在全省了。 扔个 URL 进去,零代码、原生绕过屏蔽、不用维护选择器…
这个开源项目能零代码抓取网页数据,绕过反爬机制,效率提升数十倍,已获得5万+star。
@yhslgg: 为什么14个爬虫工具我只标了这个"最特别"?老杨现在说清楚 兄弟们,这个爬虫逻辑完全不一样的工具——ScrapeGraphAI,GitHub 27900 星。 一句话:你说"帮我把这个页面上的所有产品名和价格抓出来",LLM 自动生成抓取…
介绍ScrapeGraphAI,一个基于LLM的爬虫工具,能用自然语言描述需求并自动生成抓取流程,无需编写选择器或关心HTML结构,支持本地模型和多种集成平台。
@XAMTO_AI: 24OpenClaw 现在能爬几乎任何网站,关键是——零反爬检测,原生绕过 Cloudflare,速度比 BeautifulSoup 快 774 倍。 ① 不用维护选择器 ② 不用想各种骚操作绕 ③ 直接拿数据就行 这种降维打击级别的工具…
24OpenClaw(Scrapling)是一个开源网页爬取工具,号称零反爬检测、原生绕过Cloudflare,速度比BeautifulSoup快774倍,无需维护选择器。
@ChrisSlacker: 10个GitHub仓库帮你爬取整个互联网 全部收藏。每个都能从任何网站提取干净数据,这种访问权限通常需要销售电话和合同才能获得。 1. https://github.com/firecrawl/firecrawl… 指向任何网站,它就能爬…
这篇文章介绍了10个用于网络爬虫的GitHub开源仓库,包括Firecrawl、Crawl4AI等,能够从网站提取干净数据,支持AI就绪的格式。