firecrawl-map
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesefirecrawl map
firecrawl map
Discover URLs on a site. Use to find a specific page within a large site.
--search发现网站上的URL。使用参数可在大型网站中查找特定页面。
--searchWhen 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
undefinedbash
undefinedFind 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
undefinedfirecrawl map "<url>" --limit 500 --json -o .firecrawl/urls.json
undefinedOptions
选项参数
| Option | Description |
|---|---|
| Max number of URLs to return |
| Filter URLs by search query |
| Sitemap handling strategy |
| Include subdomain URLs |
| Output as JSON |
| Output file path |
| 选项参数 | 说明 |
|---|---|
| 返回的最大URL数量 |
| 根据搜索关键词过滤URL |
| 站点地图处理策略 |
| 包含子域名的URL |
| 以JSON格式输出 |
| 输出文件路径 |
Tips
小贴士
- Map + scrape is a common pattern: use to find the right URL, then
map --searchit.scrape - Example: → found
map https://docs.example.com --search "auth"→/docs/api/authenticationthat URL.scrape
- 映射+抓取是常用组合:使用找到正确的URL,再用
map --search抓取该页面。scrape - 示例:→ 找到
map https://docs.example.com --search "auth"→ 用/docs/api/authentication抓取该URL。scrape
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功能)