360 Secure SkillHub
360 安全技能中心

Firecrawler

基于 Firecrawl 云 API 的命令行技能,用随附 fc.py 提供网页转 Markdown、全页截图、按 JSON Schema 提取结构化数据、网页搜索、站点 URL 映射与文档站爬取;需设置 FIRECRAWL_API_KEY 并安装 firecrawl SDK,按页消耗 credits。

capt-marbles
capt-marbles
热度 76.64
最近更新 2026-05-11 15:50:57
分类:搜索依赖:代码执行 / 第三方 API / 读写文件应用场景:研究 / 数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add firecrawler
Metadata
name
firecrawl
description
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.
version
1.0.0
author
captmarbles

Firecrawl Web Skill

Scrape, search, and crawl the web using Firecrawl.

Setup

  1. Get your API key from firecrawl.dev/app/api-keys
  2. Set the environment variable:
    export FIRECRAWL_API_KEY=fc-your-key-here
    
  3. Install the SDK:
    pip3 install firecrawl
    

Usage

All commands use the bundled fc.py script in this skill's directory.

Get Page as Markdown

Fetch any URL and convert to clean markdown. Handles JavaScript-rendered content.

python3 fc.py markdown "https://example.com"
python3 fc.py markdown "https://example.com" --main-only  # skip nav/footer

Take Screenshot

Capture a full-page screenshot of any URL.

python3 fc.py screenshot "https://example.com" -o screenshot.png

Extract Structured Data

Pull specific fields from a page using a JSON schema.

Schema example (schema.json):

{
  "type": "object",
  "properties": {
    "title": { "type": "string" },
    "price": { "type": "number" },
    "features": { "type": "array", "items": { "type": "string" } }
  }
}
python3 fc.py extract "https://example.com/product" --schema schema.json
python3 fc.py extract "https://example.com/product" --schema schema.json --prompt "Extract the main product details"

Web Search

Search the web and get content from results (may require paid tier).

python3 fc.py search "Python 3.13 new features" --limit 5

Crawl Documentation

Crawl an entire documentation site. Great for learning new frameworks.

python3 fc.py crawl "https://docs.example.com" --limit 30
python3 fc.py crawl "https://docs.example.com" --limit 50 --output ./docs

Note: Each page costs 1 credit. Set reasonable limits.

Map Site URLs

Discover all URLs on a website before deciding what to scrape.

python3 fc.py map "https://example.com" --limit 100
python3 fc.py map "https://example.com" --search "api"

Example Prompts

  • "Scrape https://blog.example.com/post and summarize it"
  • "Take a screenshot of stripe.com"
  • "Extract the name, price, and features from this product page"
  • "Crawl the Astro docs so you can help me build a site"
  • "Map all the URLs on docs.stripe.com"

Pricing

Free tier includes 500 credits. 1 credit = 1 page/screenshot/search query.