为 OpenClaw 封装 Firecrawl 网页抓取能力,支持 scrape / search / map / extract / agent
本项目基于 mendableai/firecrawl 官方 SDK,为 OpenClaw Agent 平台定制。
来源:Firecrawl 官方 Python SDK(firecrawl-py)
改造:封装为 OpenClaw Skill,提供 CLI 工具 + SKILL.md 使用文档
作者:ouyanghui02-maker
pip install firecrawl-py pydantic# Linux/macOS
export FIRECRAWL_API_KEY=fc-你的密钥
# Windows (CMD)
set FIRECRAWL_API_KEY=fc-你的密钥
# Windows (PowerShell)
$env:FIRECRAWL_API_KEY="fc-你的密钥"获取 API Key:https://firecrawl.dev/dashboard
# 抓取网页
python firecrawl_cli.py scrape --url https://example.com
# 搜索
python firecrawl_cli.py search --query "AI trends" --limit 10
# 发现网站链接
python firecrawl_cli.py map --url https://example.com
# AI 提取结构化数据
python firecrawl_cli.py extract --url https://example.com --schema "{\"name\": {\"type\": \"str\"}}"
# AI Agent 自动收集
python firecrawl_cli.py agent --query "查找 GitHub 热门项目"参考 SKILL.md,或直接在 OpenClaw 对话中调用 firecrawl 相关命令。
├── SKILL.md # OpenClaw Skill 使用文档
├── firecrawl_cli.py # CLI 封装脚本
└── README.md # 本文件
| 资源 | 链接 |
|---|---|
| 🌐 官网 | https://firecrawl.dev |
| 📖 文档 | https://docs.firecrawl.dev |
| 🐙 GitHub | https://github.com/mendableai/firecrawl |
| 💬 Discord | https://discord.gg/firecrawl |
- 本项目封装自 mendableai/firecrawl,版权归原作者所有
- API Key 通过环境变量
FIRECRAWL_API_KEY注入,不要硬编码 - 请遵守 Firecrawl 服务条款和目标网站的 robots.txt
- 2026-04-08 v1.0 - 初始版本,CLI 封装 + SKILL.md