关于 firecrawl-download
firecrawl-download 是一项实验性命令行技能,通过 `firecrawl x download` 调用,可发现站点页面并将抓取内容保存到 `.firecrawl/`。它需要身份验证,并支持保存多种格式和截图。
主要功能
- 01从站点源地址发现页面
- 02将抓取页面保存到嵌套目录
- 03选择多种输出格式
- 04保存页面截图
- 05将下载范围限制为指定路径
适用场景
- 01将文档页面下载为本地文件
- 02同时保存页面内容和链接
- 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/ 下。
另请参阅
- firecrawl-map — 仅发现 URL,不下载
- firecrawl-scrape — 抓取单个页面
- firecrawl-crawl — 批量提取为 JSON(而非本地文件)
- firecrawl-build-scrape — 将批量提取集成到应用中,而不是在此处运行
评论
支持 Markdown