firecrawl-scrape 是什么?
firecrawl-scrape 负责读取已知网页,或按发现的合同执行结构化数据提供方。它覆盖 Markdown/HTML/链接等页面提取、JSON schema 抽取、少量 URL 并发读取和异步 batch-scrape。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 读取一篇已知网页,或从已选 provider 合同获取结构化数据。
- 少数 URL 只需 Markdown,或多个已知 URL 需要相同 schema、非 Markdown 格式、webhook/异步状态。
这些情况不适合
- 不知道 URL 时先搜网页;整站 URL 发现用 map;整区大量页面采集用 crawl。
- 将搜索工具列表当数据结果,或猜 provider 标识和字段。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
firecrawl-scrape,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 firecrawl-scrape
请在 Codex 的当前工作环境中安装并检查 firecrawl-scrape 这个 Skill。
项目身份:firecrawl/cli / firecrawl-scrape
来源:https://github.com/firecrawl/cli/blob/a9ce64e4d114fd203d8402ca000339d66e902cde/skills/firecrawl-scrape/SKILL.md
已定位的源文件:skills/firecrawl-scrape/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 firecrawl-scrape
请在 Claude Code 的当前工作环境中安装并检查 firecrawl-scrape 这个 Skill。
项目身份:firecrawl/cli / firecrawl-scrape
来源:https://github.com/firecrawl/cli/blob/a9ce64e4d114fd203d8402ca000339d66e902cde/skills/firecrawl-scrape/SKILL.md
已定位的源文件:skills/firecrawl-scrape/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 firecrawl-scrape
请在 Cursor Agent 的当前工作环境中安装并检查 firecrawl-scrape 这个 Skill。
项目身份:firecrawl/cli / firecrawl-scrape
来源:https://github.com/firecrawl/cli/blob/a9ce64e4d114fd203d8402ca000339d66e902cde/skills/firecrawl-scrape/SKILL.md
已定位的源文件:skills/firecrawl-scrape/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 firecrawl-scrape
请在 当前 Agent 的当前工作环境中安装并检查 firecrawl-scrape 这个 Skill。
项目身份:firecrawl/cli / firecrawl-scrape
来源:https://github.com/firecrawl/cli/blob/a9ce64e4d114fd203d8402ca000339d66e902cde/skills/firecrawl-scrape/SKILL.md
已定位的源文件:skills/firecrawl-scrape/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- Firecrawl CLI 已配置。引用 URL 时加引号;保存结果时准备 .firecrawl 目录。
- 批量请求准备 URL 列表或合同,并在请求前限定格式、范围和 PDF 页数。
会得到什么
- 已检查错误、格式和范围的页面内容/provider 结果;注明来源 URL 与部分解析情况。
实际使用顺序
- 已有 URL 用 scrape;动态页面可用 wait-for;页面需要点击、翻页或登录时再转 interact。
- 要 JSON 时必须同时选择 json 格式和 schema;大量同 schema URL 用 batch-scrape。
- 调用 provider 前先 search/list 发现能力并读取单个合同;按 required/requiresOneOf、示例和结果字段结构构造请求。
- batch-scrape 可取得 job ID、轮询、等待写文件或取消;检查每个 data.alexandria 项目的错误。
- PDF 用 max-pages 限定单个 PDF 的解析页数,之后检查 metadata.numPages/totalPages/creditsUsed 判断是否只获得部分结果。
- 若 Agent 输出超限,保留 request/scrape ID 并恢复保存的上游结果;不盲目重跑。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
用 Firecrawl scrape 读取我给出的定价页,保存 Markdown 到 .firecrawl/pricing.md,然后检查定价表是否在输出中。如页面需要 JavaScript 渲染,等待页面加载后再抓取;不要用 --query 替代完整保存。预期得到可分段检查的页面正文;这是教学任务,本站未抓取该页面。
使用条件与边界
- --query 会增加 5 credits;完整抓取后本地查找通常更适合保留上下文。
- 多 URL 简单 scrape 仅保存 Markdown,忽略 -o,并发上限受当前 status 影响;其他格式和 schema 应使用 batch-scrape。
- PDF 页数上限按每份 PDF 计,不是整个命令的总额度。
常见问题
--schema 单独传就能返回 JSON 吗?
需要在 --format 包含 json;多格式组合通常会输出 JSON 容器。
多个 URL 都要 Markdown,可以用 batch-scrape 吗?
少量 URL 的 Markdown 可直接多 URL scrape;需要其他格式、JSON schema、webhook 或异步任务时用 batch-scrape。
超限错误意味着 scrape 失败吗?
不一定。上游可能已成功,先按保留 ID 找回结果,再判断是否需要重试。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-20T19:31:09.802Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/firecrawl-scrape/SKILL.md · 抓取时间 2026-11-20T19:31:09.802Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Read a known webpage or execute a discovered workflow or data-provider capability. Use for page content or structured results once the URL or tool is selected.
查看源文件章节 / Source sections
- 原文:firecrawl scrape
- 快速开始 / Quick start
- 原文:Structured JSON from a page
- 原文:Many known URLs
- 原文:Find tools, inspect inputs, and get help
- 原文:Execution and large results
- 原文:PDFs and page budgets
- 原文:Tips
- 原文:See also
原文:firecrawl scrape
Read a URL for page content, or execute a selected provider tool for structured data. Discover tools with `search` and inspect their inputs with `list` before execution. Multiple URLs can be scraped concurrently. For structured datasets, first check for a suitable workflow or data provider using the [search skill](../firecrawl-search/SKILL.md). Read a known page directly; reuse a selected contract instead of repeating discovery.
快速开始 / Quick start
```bash # Basic markdown extraction firecrawl scrape "<url>" -o .firecrawl/page.md # Keep the whole page, including nav/footer (main content only is the default) firecrawl scrape "<url>" --full-page -o .firecrawl/page.md # Wait for JS to render, then scrape firecrawl scrape "<url>" --wait-for 3000 -o .firecrawl/page.md # A few URLs (markdown only; each saved to .firecrawl/; -o is ignored) firecrawl scrape https://example.com https://example.com/blog https://example.com/docs # Get markdown and links together firecrawl scrape "<url>" --format markdown,links -o .firecrawl/page.json # Ask a question about the page firecrawl scrape "https://example.com/pricing" --query "What is the enterprise plan price?" ``` Run `firecrawl scrape --help` for the full option list. **Done when:** the page content or provider result has been checked for errors and inspected in bounded sections to answer the request. Preserve source links and disclose partial results.
原文:Structured JSON from a page
Pass a JSON schema with the `json` format to get typed fields instead of markdown: ```bash firecrawl scrape "<url>" --format json \ --schema '{"type":"object","properties":{"plan":{"type":"string"},"price":{"type":"string"}},"required":["plan"]}' \ -o .firecrawl/pricing.json # Large schemas: keep them in a file firecrawl scrape "<url>" --format json --schema-file schema.json -o .firecrawl/page.json ``` The result is under `.json` in the output. `--schema` only applies when `json` is in `--format`; add other formats with commas (`--format markdown,json`). For the same schema across many URLs, use `batch-scrape --schema` below.
原文:Many known URLs
Use `firecrawl batch-scrape` for a list of known URLs when you need formats other than markdown, JSON extraction, a webhook, or a job you can check later. Keep the multi-URL `scrape` above for a few pages of markdown. ```bash # Start a job (prints a job ID), then check it later firecrawl batch-scrape https://example.com/a https://example.com/b firecrawl batch-scrape <job-id> # Wait and save every document as JSON (urls.txt: one URL per line, # comments ok) firecrawl batch-scrape --urls-file urls.txt --format markdown,links --wait -o .firecrawl/batch.json # Same extraction for every URL (--schema or --prompt adds the json format) firecrawl batch-scrape --urls-file urls.txt --wait \ --schema '{"type":"object","properties":{"title":{"type":"string"}}}' -o .firecrawl/batch.json ``` Results are in `.data[]`, one document per URL with `metadata.sourceURL`. Add `--webhook <url>` to get notified, `--ignore-invalid-urls` to skip bad entries, and `--cancel` with a job ID to stop a job. Run `firecrawl batch-scrape --help` for all options.
原文:Find tools, inspect inputs, and get help
Use the CLI help to check supported options rather than guessing: ```bash firecrawl search --help firecrawl list --help firecrawl scrape --help ``` Domain discovery with `--domain-tools` returns tool summaries by default. Add `--tool-detail full` for contracts upfront, or inspect one selected tool with `list` as shown below. Use `--tool-detail compact` for only provider, capability and description; inspect by those two IDs with `list`. Summary remains the default. Prefer full when several related contracts will be needed immediately. For structured data, search for the task, inspect a matching tool's contract, then execute with the exact input fields it declares: ```bash # Web + domain matching + semantic tools firecrawl search '<user question>' # Semantic tools only firecrawl search alexandria '<user question>' # Categories → providers → tools → contract firecrawl list firecrawl list <category-id> --category firecrawl list <provider-id> firecrawl list <provider-id> <capability-id> --pretty # Execute a tool firecrawl scrape <provider-id>/<capability-id> --options '<JSON matching the selected contract>' ``` Normal search includes web results and tool matches; `search alexandria` searches tools only. `list <provider> <capability> --pretty` shows the selected contract; use `--json` for machine-readable output. To browse progressively, use `list`, then `list <category> --category`, then `list <provider>`. Search and list do not execute the selected provider tool. Read only the contracts needed for the task; use returned identifiers rather than guessing them. Read the expanded contract before building inputs or parsing results:
本段为节选,完整内容见源文件。
原文:Execution and large results
URL scraping does not execute provider tools automatically. Use exact discovered input fields and resolve record IDs with lookup tools rather than inventing them. Check each `data.alexandria[]` result for errors, not just the outer success flag. If the client reports an output/context limit, the upstream request may have succeeded. Preserve the request or scrape ID and recover the retained result before repeating the provider call. For large datasets and PDFs, save output with `--json -o` when a local filesystem is available and inspect bounded sections with `jq` or other file tools. Keep stderr separate from JSON stdout; do not merge streams with `2>&1` when piping to a JSON parser. Where remote processing is preferable, use `firecrawl scrape firecrawl/bash` to select from a retained result. Read [large-result recovery](references/large-results.md) for IDs, command examples, expiry, and errors. This is explicit recovery, not automatic overflow detection.
文件 SHA256:98c9b2cc2944270caba6c73e4ea9dbb38c7af73b6bfb35ab9ad70f7e8ee79170
仓库许可证记录:未提供;not-established,查看来源。
Extract clean markdown from any URL, including JavaScript-rendered SPAs. Use this skill whenever the user provides a URL and wants its content, says "scrape",…
这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。
历史收录数据
| Skill标识 | firecrawl-scrape |
|---|---|
| 来源仓库 | firecrawl/cli |
| 榜单快照 | 2026-07-28 |
| 榜单口径 | Skills.sh累计安装量 |
| 快照名次 | 270 |
| 快照累计安装量 | 76526 |
历史资料说明
- 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
- 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。
此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。
