firecrawl-parse

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

firecrawl parse

firecrawl parse

Turn a local document into clean markdown on disk. Supports PDF, DOCX, DOC, ODT, RTF, XLSX, XLS, HTML/HTM.
将本地文档转换为磁盘上的整洁Markdown格式。支持PDF、DOCX、DOC、ODT、RTF、XLSX、XLS、HTML/HTM格式。

Quick start

快速开始

Always save to
.firecrawl/
with
-o
— parsed docs can be hundreds of KB and blow up context if streamed to stdout. Add
.firecrawl/
to
.gitignore
.
bash
mkdir -p .firecrawl
始终使用
-o
参数将结果保存到
.firecrawl/
目录中——解析后的文档可能有数百KB大小,如果输出到标准输出会占用大量上下文空间。请将
.firecrawl/
添加到
.gitignore
文件中。
bash
mkdir -p .firecrawl

File → markdown

File → markdown

firecrawl parse ./paper.pdf -o .firecrawl/paper.md
firecrawl parse ./paper.pdf -o .firecrawl/paper.md

AI summary

AI summary

firecrawl parse ./paper.pdf -S -o .firecrawl/paper-summary.md
firecrawl parse ./paper.pdf -S -o .firecrawl/paper-summary.md

Ask a question about the doc

Ask a question about the doc

firecrawl parse ./paper.pdf -Q "What are the main conclusions?"
-o .firecrawl/paper-qa.md

Then read the output incrementally with `head`, `grep`, or `rg`.

Run `firecrawl parse --help` for the full option list.

**Done when:** the markdown, summary, or answer is written under `.firecrawl/` and you have inspected it with bounded reads.
firecrawl parse ./paper.pdf -Q "What are the main conclusions?"
-o .firecrawl/paper-qa.md

之后可以使用`head`、`grep`或`rg`命令增量读取输出内容。

运行`firecrawl parse --help`查看完整选项列表。

**完成标志:** Markdown文件、摘要或问答结果已写入`.firecrawl/`目录,且你已通过有限读取方式检查过内容。

Tips

小贴士

  • Quote paths with spaces:
    firecrawl parse "./My Doc.pdf" -o .firecrawl/mydoc.md
    .
  • Max upload size: 50 MB per file.
  • Credits: ~1 per PDF page; HTML is 1 flat.
  • Check
    .firecrawl/
    before re-parsing the same file.
  • To check your credit balance (recommended for batch processing and similar workflows), use
    firecrawl credit-usage
    (requires authentication).
  • 对包含空格的路径添加引号:
    firecrawl parse "./My Doc.pdf" -o .firecrawl/mydoc.md
    。
  • 最大上传大小:每个文件50 MB。
  • 积分消耗:每PDF页面约1积分;HTML文件固定消耗1积分。
  • 重新解析同一文件前,请先检查
    .firecrawl/
    目录中是否已有结果。
  • 如需查看积分余额(建议在批量处理等场景中使用),请运行
    firecrawl credit-usage
    (需要身份验证)。

See also

另请参阅

  • firecrawl-scrape — same idea for URLs
  • firecrawl-scrape — 针对URL的同类工具