firecrawl-map

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

firecrawl map

firecrawl map

Discover URLs on a site. Use
--search
to find a specific page within a large site.
发现网站上的URL。使用
--search
参数可在大型网站中查找特定页面。

When to use

使用场景

  • You need to find a specific subpage on a large site
  • You want a list of all URLs on a site before scraping or crawling
  • Step 3 in the workflow escalation pattern: search → scrape → map → crawl → browser
  • 你需要在大型网站中找到特定的子页面
  • 你想在抓取或爬取网站前获取所有URL的列表
  • 这是工作流升级模式的第三步:搜索 → 抓取 → 映射 → 爬取 → 浏览器

Quick start

快速开始

bash
undefined
bash
undefined

Find a specific page on a large site

在大型网站中查找特定页面

firecrawl map "<url>" --search "authentication" -o .firecrawl/filtered.txt
firecrawl map "<url>" --search "authentication" -o .firecrawl/filtered.txt

Get all URLs

获取所有URL

firecrawl map "<url>" --limit 500 --json -o .firecrawl/urls.json
undefined
firecrawl map "<url>" --limit 500 --json -o .firecrawl/urls.json
undefined

Options

选项参数

OptionDescription
--limit <n>
Max number of URLs to return
--search <query>
Filter URLs by search query
--sitemap <include|skip|only>
Sitemap handling strategy
--include-subdomains
Include subdomain URLs
--json
Output as JSON
-o, --output <path>
Output file path
选项参数说明
--limit <n>
返回的最大URL数量
--search <query>
根据搜索关键词过滤URL
--sitemap <include|skip|only>
站点地图处理策略
--include-subdomains
包含子域名的URL
--json
以JSON格式输出
-o, --output <path>
输出文件路径

Tips

小贴士

  • Map + scrape is a common pattern: use
    map --search
    to find the right URL, then
    scrape
    it.
  • Example:
    map https://docs.example.com --search "auth"
    → found
    /docs/api/authentication
    scrape
    that URL.
  • 映射+抓取是常用组合:使用
    map --search
    找到正确的URL,再用
    scrape
    抓取该页面。
  • 示例:
    map https://docs.example.com --search "auth"
    → 找到
    /docs/api/authentication
    → 用
    scrape
    抓取该URL。

See also

相关工具

  • firecrawl-scrape — scrape the URLs you discover
  • firecrawl-crawl — bulk extract instead of map + scrape
  • firecrawl-download — download entire site (uses map internally)
  • firecrawl-scrape — 抓取你发现的URL
  • firecrawl-crawl — 批量提取内容,替代映射+抓取的组合
  • firecrawl-download — 下载整个网站(内部使用map功能)