关于 firecrawl-download
firecrawl download 是 Firecrawl CLI 的实验性命令(位于 firecrawl x 命令组下),用于把网站页面批量保存为本地文件。它先映射站点源以发现页面,再将每个页面抓取到 .firecrawl/ 下的嵌套目录中。该命令需要身份验证。
主要功能
- 01先映射站点源发现页面
- 02按页面保存为本地文件
- 03支持多种输出格式与截图
- 04可用 --include-paths 限定站点区段
- 05-y 参数跳过交互式向导
适用场景
- 01将文档站点离线保存为 Markdown 文件
- 02为某个站点区段批量保存页面和截图
- 03在自动化脚本中批量下载页面
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ firecrawl/ cli --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