mcpField
F
firecrawl-download

firecrawl-download

github.com/firecrawl文档处理1395.7k 次安装6 天前更新
代码仓库

关于 firecrawl-download

firecrawl-download 是一项实验性命令行技能,通过 `firecrawl x download` 调用,可发现站点页面并将抓取内容保存到 `.firecrawl/`。它需要身份验证,并支持保存多种格式和截图。

主要功能

  1. 01从站点源地址发现页面
  2. 02将抓取页面保存到嵌套目录
  3. 03选择多种输出格式
  4. 04保存页面截图
  5. 05将下载范围限制为指定路径

适用场景

  1. 01将文档页面下载为本地文件
  2. 02同时保存页面内容和链接
  3. 03下载站点某个部分时捕获截图

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/firecrawl/skills --skill firecrawl-download

安装后在 Claude Code 中输入/firecrawl-download确认已加载。

详细介绍

firecrawl download(调用方式为 firecrawl x download)

实验性功能。 download 在 firecrawl x 命令组下提供。

前提条件: download 需要身份验证(没有免密钥免费层);如果没有凭据,CLI 会提示进行交互式登录。

首先映射站点源以发现页面,然后将每个页面抓取到 .firecrawl/ 下的嵌套目录中。使用 --include-paths 可将非根 URL 限定在一个部分内。自动化运行始终传入 -y——否则该命令会打开交互式向导,并停在提示处等待输入。

快速开始

# With screenshots
firecrawl x download https://docs.example.com --screenshot --limit 20 -y

# Multiple formats (each saved as its own file per page)
firecrawl x download https://docs.example.com --format markdown,links --screenshot --limit 20 -y
# Creates per page: index.md + links.txt + screenshot.png

# Filter to specific sections
firecrawl x download https://docs.example.com --include-paths "/features,/sdks" -y

# Skip translations
firecrawl x download https://docs.example.com --exclude-paths "/zh,/ja,/fr,/es,/pt-BR" -y

运行 firecrawl x download --help 查看完整选项列表,包括 download 支持哪些抓取选项。

完成条件: 命令成功退出,且预期文件存在于 .firecrawl/ 下。

另请参阅

评论

支持 Markdown