Web scraping and crawling with Firecrawl API. Fetch webpage content as markdown, take screenshots, extract structured data, search the web, and crawl documentation sites. Use when the user needs to scrape a URL, get current web info, capture a screenshot, extract specific data from pages, or crawl docs for a framework/library.
使用 Firecrawl 进行网页抓取、搜索和爬取。
所有命令均使用本技能目录中捆绑的 fc.py 脚本。
获取任意 URL 并转换为干净的 Markdown 格式。支持 JavaScript 渲染的内容。
bash
python3 fc.py markdown https://example.com
python3 fc.py markdown https://example.com --main-only # 跳过导航/页脚
捕获任意 URL 的整页截图。
bash
python3 fc.py screenshot https://example.com -o screenshot.png
使用 JSON 模式从页面中提取特定字段。
模式示例 (schema.json):
json
{
type: object,
properties: {
title: { type: string },
price: { type: number },
features: { type: array, items: { type: string } }
}
}
bash
python3 fc.py extract https://example.com/product --schema schema.json
python3 fc.py extract https://example.com/product --schema schema.json --prompt 提取主要产品详情
搜索网页并获取结果内容(可能需要付费套餐)。
bash
python3 fc.py search Python 3.13 新特性 --limit 5
爬取整个文档站点。非常适合学习新框架。
bash
python3 fc.py crawl https://docs.example.com --limit 30
python3 fc.py crawl https://docs.example.com --limit 50 --output ./docs
注意: 每个页面消耗 1 个积分。请设置合理的限制。
在决定抓取内容之前,发现网站上的所有 URL。
bash
python3 fc.py map https://example.com --limit 100
python3 fc.py map https://example.com --search api
免费套餐包含 500 个积分。1 积分 = 1 个页面/截图/搜索查询。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 firecrawler-1776382982 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 firecrawler-1776382982 技能
skillhub install firecrawler-1776382982
文件大小: 4.72 KB | 发布时间: 2026-4-17 14:06