firecrawl-build-scrape
它能做什么
这项技能帮助开发者构建一项功能,使用 Firecrawl 的抓取步骤,从某个已知的网页中提取内容。适合需要在应用中获取页面文字、链接或截图的产品团队。
适用场景
- ✓应用已经有一个网址,并且需要该网页的内容的时候。
- ✓你的产品需要页面内容用于搜索、摘要或数据补充的时候。
- ✓你需要把页面的链接、元数据或截图作为应用功能的一部分的时候。
技能链接
https://github.com/firecrawl/firecrawl/blob/main/skills/firecrawl-build-scrape/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我们的应用加入一项功能:输入产品网址,返回页面的主要文字(Markdown 格式),并包括标题和价格。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能建议要求输出 Markdown 格式,并聚焦于页面的主要内容。它还说明如何控制内容的新鲜度,使重复读取在适当的时候可以复用最近的结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Firecrawl Build Scrape
Use this when the application already has the URL and needs content from one page.
Use This When
- the feature starts from a known URL
- you need page content for retrieval, summarization, enrichment, or monitoring
- you want the default extraction primitive before considering
/interact
Default Recommendations
- Return
markdownunless the feature truly needs another format. - Use
onlyMainContentfor article-like pages where nav and chrome add noise. - Add waits or other rendering options only when the page needs them.
Freshness and Liveness
- Firecrawl reuses recently indexed content, which is what makes repeat reads of the same URL fast. Set
maxAge(milliseconds) to bound how old a reused copy may be, ormaxAge: 0to skip index reuse for a freshness-critical read. - Read
metadata.cacheStateandmetadata.cachedAtto see what you actually got. - A successful scrape reports what the page returned. Whether the thing the page describes is still active is a source-specific judgment your code makes.
- See references/freshness-and-liveness.md for the tradeoff, the metadata, and the decision rule.
Common Product Patterns
- knowledge ingestion from known URLs
- enrichment from a company, product, or docs page
- pricing, changelog, and documentation extraction
- page-level quality checks or monitoring
Escalation Rules
- If you do not have the URL yet, start with firecrawl-build-search.
- If content requires clicks, typing, or multi-step navigation, escalate to firecrawl-build-interact.
Implementation Notes
- Keep the integration narrow: one feature, one URL, one extraction contract.
- Treat
/scrapeas the default primitive for downstream LLM or indexing pipelines. - Request richer formats only when the consumer needs them, such as links, screenshots, or branding data.
Docs (Source of Truth)
Read the source-of-truth page for your project language before writing integration code:
- Node / TypeScript: docs.firecrawl.dev/agent-source-of-truth/node
- Python: docs.firecrawl.dev/agent-source-of-truth/python
- Rust: docs.firecrawl.dev/agent-source-of-truth/rust
- Java: docs.firecrawl.dev/agent-source-of-truth/java
- Elixir: docs.firecrawl.dev/agent-source-of-truth/elixir
- cURL / REST: docs.firecrawl.dev/agent-source-of-truth/curl
See Also
常见问题
应该要求什么输出格式?
技能说明,除非功能需要其他格式,否则应返回 Markdown。
可以强制重新读取吗?
可以。技能描述了 maxAge 设置,将其设为零时会跳过旧结果的复用。
什么时候应该使用其他功能?
技能说明,当页面需要点击或填写表单时,应转而使用交互技能。
详情
作者的原始描述
Integrate Firecrawl `/scrape` into product code for single-page extraction. Use when an app already has a URL and needs markdown, HTML, links, screenshots, metadata, or structured page output. Prefer this skill over broader crawl patterns when the feature is page-level.
repo: firecrawl/firecrawl
热度
- GitHub 星标
- 198k
- 排名
- #631
- 许可证
- AGPL-3.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
firecrawl-build-interact
198k指导开发者在应用中加入 Firecrawl 的交互功能,使其能够点击、填写表单并在网页之间跳转。
firecrawl-build-onboarding
198k帮助开发者在项目中设置 Firecrawl,包括安装工具、将 API 密钥添加到环境文件,以及选择 SDK。
firecrawl-build-search
198k指导开发者使用 Firecrawl 在应用中加入网络搜索,使产品能够先根据查询找到网页,再读取内容。
firecrawl-build
198k帮助开发者借助 Firecrawl 为应用加入实时网络数据,包括搜索、网页抓取、信息提取和浏览器操作。