Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add djblack1209-coder/OpenClaw-Bot --skill crawl4aigit clone --depth 1 https://github.com/djblack1209-coder/OpenClaw-BotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/djblack1209-coder/openclaw-bot/crawl4ai)<a href="https://agentmods.dev/skills/djblack1209-coder/openclaw-bot/crawl4ai"><img src="https://agentmods.dev/badge/skills/djblack1209-coder/openclaw-bot/crawl4ai/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/djblack1209-coder/openclaw-bot/crawl4ai"><img src="https://agentmods.dev/badge/skills/djblack1209-coder/openclaw-bot/crawl4ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.00675 |
| Opus 5.5 | $0.00030 | $0.00270 |
| Sonnet 5.5 | $0.00015 | $0.00135 |
| Haiku 4.5 | $0.00007 | $0.00068 |
Grade A, and why
crawl4ai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Crawl4AI — AI 智能网页爬取
开源 AI 友好爬虫,将网页内容转换为干净的 Markdown/JSON,适合 RAG 和 AI 消费。
Requirements
pip install crawl4ai
crawl4ai-setup # 安装浏览器(首次)
Quick Usage
基础爬取(转 Markdown)
import asyncio
from crawl4ai import AsyncWebCrawler, CrawlerRunConfig
async def crawl(url):
async with AsyncWebCrawler() as crawler:
result = await crawler.arun(url=url, config=CrawlerRunConfig())
return result.markdown
# asyncio.run(crawl("https://example.com"))
命令行快速爬取
python -c "
import asyncio
from crawl4ai import AsyncWebCrawler, CrawlerRunConfig
async def main():
async with AsyncWebCrawler() as c:
r = await c.arun(url='$URL', config=CrawlerRunConfig())
print(r.markdown[:3000])
asyncio.run(main())
"
结构化数据提取
from crawl4ai import AsyncWebCrawler, CrawlerRunConfig
from crawl4ai.extraction_strategy import JsonCssExtractionStrategy
import json
schema = {
"name": "Products",
"baseSelector": ".product-card",
"fields": [
{"name": "title", "selector": "h2", "type": "text"},
{"name": "price", "selector": ".price", "type": "text"},
{"name": "link", "selector": "a", "type": "attribute", "attribute": "href"},
]
}
async def extract(url):
strategy = JsonCssExtractionStrategy(schema)
config = CrawlerRunConfig(extraction_strategy=strategy)
async with AsyncWebCrawler() as crawler:
result = await crawler.arun(url=url, config=config)
return json.loads(result.extracted_content)
Use Cases
| 场景 | 方法 |
|---|---|
| 网页转 Markdown | 基础爬取,直接用 result.markdown |
| 提取商品/文章列表 | JsonCssExtractionStrategy + CSS 选择器 |
| JS 渲染页面 | 默认支持,自动等待页面加载 |
| 批量爬取 | 循环 URL 列表,注意限速 |
| RAG 数据源 | 爬取后切分存入向量数据库 |
Notes
- 默认使用 headless 浏览器,支持 JS 渲染
- 自动转换为 AI 友好的 Markdown 格式
- 比 requests + BeautifulSoup 更适合现代网页
- 注意遵守目标网站的 robots.txt 和使用条款
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 88 lines · 75 tokens per session scan A 108172dc1ee9
crawl4ai is a skill published in the GitHub repository djblack1209-coder/OpenClaw-Bot (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 675 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
crawl4ai compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| crawl4aidjblack1209-coder/OpenClaw-Bot | Skill | 5 | 1mo ago | Apache-2.0 | A | 75 | Claude Code, Codex |
| agents-langchaindavila7/claude-code-templates | Skill | 35k | today | MIT | A | 80 | Claude Code, Codex |
| inspector-workbenchCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 112 | Claude Code |
| mcp-builderCopilotKit/CopilotKit | Skill | 39k | today | MIT | A | 123 | Claude Code |
| vector-memory-lancedbDDS-Solutions/AI-TadPole-OS | Skill | 9 | 5d ago | MIT | A | 31 | Claude Code |
| Platos RAGwinsenlabs/platos | Skill | 24 | 2mo ago | Apache-2.0 | A | 70 | Claude Code, Codex |
| pinecone-researchopenamer/openamer | Skill | 10 | yesterday | Apache-2.0 | A | 16 | Claude Code, Codex |