
Firecrawl
- 32 installs
- 82 repo stars
- Updated August 2, 2026
- aaaaqwq/claude-code-skills
firecrawl is a Claude Code skill that wraps the Firecrawl API to scrape web pages, extract structured data, batch-crawl sites, and search-and-scrape.
About
firecrawl is a Claude Code skill that wraps the Firecrawl API for web scraping and data extraction. It scrapes single pages including dynamic content, extracts structured data against a schema, crawls sites in batch, and searches then scrapes. A developer uses it to pull web content and structured data into a workflow via a bundled shell script. It reads the Firecrawl API key from the pass store and notes plan-based usage limits.
- Wraps the Firecrawl API for web scraping and data extraction
- Supports single-page scrape, structured extract, batch crawl, and search
- Reads the Firecrawl API key from the pass store
Firecrawl by the numbers
- 32 all-time installs (skills.sh)
- Ranked #1,210 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Aug 3, 2026 (Skillselion catalog sync)
firecrawl capabilities & compatibility
Free skill; requires a Firecrawl API key and is subject to Firecrawl plan usage limits.
- Capabilities
- web scraping · structured extraction · site crawl · search scrape
- Use cases
- web scraping · web search
- Pricing
- Bring your own API key
What firecrawl says it does
专业网页抓取和数据提取。使用 Firecrawl API 抓取网页、提取结构化数据、批量爬取网站。
存储在: `pass show api/firecrawl`
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill firecrawlAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 32 |
|---|---|
| repo stars | ★ 82 |
| Last updated | August 2, 2026 |
| Repository | aaaaqwq/claude-code-skills ↗ |
What it does
A developer scrapes web pages and extracts structured data through the Firecrawl API from a single skill command.
Who is it for?
Developers pulling web content or structured data into a workflow via the Firecrawl API.
Skip if: Sites with anti-scraping defenses, which the docs note may block scraping.
When should I use this skill?
When you need to scrape complex web pages, extract structured data, or batch-crawl a website.
What you get
Scraped page content, schema-extracted data, or crawled site data via a single command.
- Scraped page content
- Extracted structured data
- Crawled site data
By the numbers
- 4 scraping modes (scrape, extract, crawl, search)
- Scrape supports 4 output formats (markdown, html, text, json)
Files
Firecrawl 网页抓取
功能说明
此技能使用 Firecrawl API 提供专业网页抓取能力:
- 单页抓取(支持动态内容)
- 结构化数据提取
- 批量网站爬取
- 搜索并抓取
使用方式
1. 抓取单个网页
./scripts/firecrawl.sh scrape <url> [format]- format: markdown (默认), html, text, json
2. 提取结构化数据
./scripts/firecrawl.sh extract <url> <schema>3. 批量爬取网站
./scripts/firecrawl.sh crawl <url> [max_pages]4. 搜索并抓取
./scripts/firecrawl.sh search <query> [limit]API Key
存储在: pass show api/firecrawl
示例
抓取 Polymarket 页面
./scripts/firecrawl.sh scrape "https://polymarket.com/event/fed-decision-in-march-885"提取产品信息
./scripts/firecrawl.sh extract "https://example.com/product" '{"name": "string", "price": "number"}'搜索 AI 新闻
./scripts/firecrawl.sh search "latest AI news" 5注意事项
- Firecrawl 有使用限制(取决于套餐)
- 复杂网页可能需要更长的处理时间
- 某些网站可能有反爬虫机制
#!/bin/bash
# Firecrawl API 调用脚本
# API Key 从 pass 获取
set -e
API_KEY=$(pass show api/firecrawl 2>/dev/null | head -1)
BASE_URL="https://api.firecrawl.dev/v1"
if [ -z "$API_KEY" ]; then
echo "错误: 无法获取 Firecrawl API Key"
echo "请确保已存储: pass insert api/firecrawl"
exit 1
fi
# 通用请求函数
firecrawl_request() {
local endpoint="$1"
local data="$2"
curl -s -X POST "${BASE_URL}${endpoint}" \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d "$data"
}
# 抓取单个网页
scrape() {
local url="$1"
local format="${2:-markdown}"
echo "正在抓取: $url"
echo "格式: $format"
echo "---"
firecrawl_request "/scrape" "{
\"url\": \"$url\",
\"formats\": [\"$format\"],
\"onlyMainContent\": true
}" | jq -r '.data.content // .data.markdown // .'
}
# 提取结构化数据
extract() {
local url="$1"
local schema="$2"
echo "正在提取: $url"
echo "Schema: $schema"
echo "---"
firecrawl_request "/scrape" "{
\"url\": \"$url\",
\"formats\": [\"extract\"],
\"extract\": {
\"schema\": $schema
}
}" | jq '.data.extract // .'
}
# 批量爬取网站
crawl() {
local url="$1"
local max_pages="${2:-10}"
echo "正在爬取: $url"
echo "最大页数: $max_pages"
echo "---"
# 先发起爬取请求
local job_id=$(firecrawl_request "/crawl" "{
\"url\": \"$url\",
\"maxDepth\": 2,
\"limit\": $max_pages,
\"scrapeOptions\": {
\"formats\": [\"markdown\"],
\"onlyMainContent\": true
}
}" | jq -r '.id // .')
if [ "$job_id" == "null" ] || [ -z "$job_id" ]; then
echo "爬取失败"
exit 1
fi
echo "爬取任务已创建: $job_id"
echo "等待完成..."
# 轮询任务状态
local status="scraping"
local attempts=0
local max_attempts=60
while [ "$status" != "completed" ] && [ $attempts -lt $max_attempts ]; do
sleep 2
status=$(curl -s "${BASE_URL}/crawl/${job_id}" \
-H "Authorization: Bearer ${API_KEY}" | jq -r '.status // "unknown"')
echo "状态: $status"
attempts=$((attempts + 1))
done
# 获取结果
if [ "$status" == "completed" ]; then
curl -s "${BASE_URL}/crawl/${job_id}" \
-H "Authorization: Bearer ${API_KEY}" | jq '.data // .'
else
echo "爬取超时"
exit 1
fi
}
# 搜索并抓取
search() {
local query="$1"
local limit="${2:-5}"
echo "正在搜索: $query"
echo "限制: $limit"
echo "---"
firecrawl_request "/search" "{
\"query\": \"$query\",
\"limit\": $limit,
\"scrapeOptions\": {
\"formats\": [\"markdown\"],
\"onlyMainContent\": true
}
}" | jq '.data // .'
}
# 帮助信息
help() {
echo "Firecrawl API 调用脚本"
echo ""
echo "用法:"
echo " $0 scrape <url> [format] 抓取单个网页"
echo " $0 extract <url> <schema> 提取结构化数据"
echo " $0 crawl <url> [max_pages] 批量爬取网站"
echo " $0 search <query> [limit] 搜索并抓取"
echo ""
echo "示例:"
echo " $0 scrape https://example.com"
echo " $0 extract https://example.com '{\"title\": \"string\"}'"
echo " $0 crawl https://example.com 10"
echo " $0 search \"AI news\" 5"
}
# 主入口
case "$1" in
scrape)
scrape "$2" "$3"
;;
extract)
extract "$2" "$3"
;;
crawl)
crawl "$2" "$3"
;;
search)
search "$2" "$3"
;;
*)
help
;;
esac
Related skills
Forks & variants (1)
Firecrawl has 1 known copy in the catalog totaling 12 installs. They canonicalize to this original listing.
- aaaaqwq - 12 installs
FAQ
What modes does it support?
scrape a single page, extract structured data against a schema, batch crawl a site, and search then scrape.
Where is the API key stored?
In the pass store at api/firecrawl.