firecrawl-agent

firecrawl-agent

熱門

AI 驅動的自動化資料擷取,能導航複雜網站並回傳結構化 JSON。當使用者想要從網站取得結構化資料、需要擷取價格方案、產品列表、目錄條目,或任何需要以 JSON 格式搭配 schema 的資料時,使用此技能。觸發詞包括「提取結構化資料」、「取得所有產品」、「拉取價格資訊」、「提取為 JSON」,或當使用者提供網站資料的 JSON schema 時。比單純的爬蟲更強大,適用於多頁結構化擷取。

473星標
72分支
更新於 2026/6/19
SKILL.md
readonlyread-only
name
firecrawl-agent
description

AI-powered autonomous data extraction that navigates complex sites and returns structured JSON. Use this skill when the user wants structured data from websites, needs to extract pricing tiers, product listings, directory entries, or any data as JSON with a schema. Triggers on "extract structured data", "get all the products", "pull pricing info", "extract as JSON", or when the user provides a JSON schema for website data. More powerful than simple scraping for multi-page structured extraction.

firecrawl agent

AI 驅動的自動化擷取。代理程式會導航網站並提取結構化資料(約需 2-5 分鐘)。

使用時機

  • 你需要從複雜的多頁網站取得結構化資料
  • 手動爬蟲需要導航許多頁面
  • 你想讓 AI 自行找出資料所在位置

快速開始

# 提取結構化資料
firecrawl agent "extract all pricing tiers" --wait -o .firecrawl/pricing.json

# 搭配 JSON schema 進行結構化輸出
firecrawl agent "extract products" --schema '{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"number"}}}' --wait -o .firecrawl/products.json

# 聚焦特定頁面
firecrawl agent "get feature list" --urls "<url>" --wait -o .firecrawl/features.json

選項

選項 說明
--urls <urls> 代理程式的起始 URL
--model <model> 使用的模型:spark-1-mini 或 spark-1-pro
--schema <json> 結構化輸出的 JSON schema
--schema-file <path> JSON schema 檔案路徑
--max-credits <n> 本次代理執行的點數上限
--wait 等待代理完成
--pretty 美化 JSON 輸出格式
-o, --output <path> 輸出檔案路徑

提示

  • 務必使用 --wait 以直接取得結果。不加此選項則只會回傳任務 ID。
  • 使用 --schema 可獲得可預測的結構化輸出;否則代理會回傳自由格式的資料。
  • 代理執行消耗的點數比單純爬蟲更多。使用 --max-credits 可設定花費上限。
  • 若只是簡單的單頁擷取,建議使用 scrape — 更快且更便宜。

參見