返回顶部
f

firecrawlFirecrawl 网页抓取

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,623
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

firecrawl

Firecrawl 网页技能

使用 Firecrawl 进行网页抓取、搜索和爬取。

设置

  1. 1. 从 firecrawl.dev/app/api-keys 获取您的 API 密钥
  2. 设置环境变量:
bash export FIRECRAWLAPIKEY=fc-your-key-here
  1. 3. 安装 SDK:
bash pip3 install firecrawl

使用方法

所有命令均使用本技能目录中捆绑的 fc.py 脚本。

将页面转换为 Markdown

获取任意 URL 并转换为干净的 Markdown 格式。支持 JavaScript 渲染的内容。

bash
python3 fc.py markdown https://example.com
python3 fc.py markdown https://example.com --main-only # 跳过导航/页脚

截取屏幕截图

捕获任意 URL 的整页截图。

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

提取结构化数据

使用 JSON 模式从页面中提取特定字段。

模式示例 (schema.json):
json
{
type: object,
properties: {
title: { type: string },
price: { type: number },
features: { type: array, items: { type: string } }
}
}

bash
python3 fc.py extract https://example.com/product --schema schema.json
python3 fc.py extract https://example.com/product --schema schema.json --prompt 提取主要产品详情

网页搜索

搜索网页并获取结果内容(可能需要付费套餐)。

bash
python3 fc.py search Python 3.13 新特性 --limit 5

爬取文档

爬取整个文档站点。非常适合学习新框架。

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

注意: 每个页面消耗 1 个积分。请设置合理的限制。

映射站点 URL

在决定抓取内容之前,发现网站上的所有 URL。

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

示例提示

  • - 抓取 https://blog.example.com/post 并总结内容
  • 截取 stripe.com 的屏幕截图
  • 从该产品页面提取名称、价格和功能
  • 爬取 Astro 文档,以便帮助我构建网站
  • 映射 docs.stripe.com 上的所有 URL

定价

免费套餐包含 500 个积分。1 积分 = 1 个页面/截图/搜索查询。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 firecrawler-1776382982 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 firecrawler-1776382982 技能

通过命令行安装

skillhub install firecrawler-1776382982

下载

⬇ 下载 firecrawl v1.0.0(免费)

文件大小: 4.72 KB | 发布时间: 2026-4-17 14:06

v1.0.0 最新 2026-4-17 14:06
Initial release - markdown, screenshot, extract, search, crawl, map

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部