Loading...
Loading...
Compare original and translation side by side
crw scrape "https://example.com" # → markdown to stdout
crw scrape "https://example.com" --format json -o page.json
crw scrape "https://example.com" --js --css "article.main"
crw scrape "https://example.com" --format links -o .crw/links.txtcrw_scrape(url="https://example.com", formats=["markdown"], onlyMainContent=true)curl -X POST "$CRW_API_URL/v1/scrape" -H "Authorization: Bearer $CRW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"url":"https://example.com","formats":["markdown"],"onlyMainContent":true}'crw scrape "https://example.com" # → 将markdown输出到标准输出
crw scrape "https://example.com" --format json -o page.json
crw scrape "https://example.com" --js --css "article.main"
crw scrape "https://example.com" --format links -o .crw/links.txtcrw_scrape(url="https://example.com", formats=["markdown"], onlyMainContent=true)curl -X POST "$CRW_API_URL/v1/scrape" -H "Authorization: Bearer $CRW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"url":"https://example.com","formats":["markdown"],"onlyMainContent":true}'| Need | CLI flag | MCP / REST field |
|---|---|---|
| Output format | | |
| Strip nav/footer/sidebar | (on by default; | |
| Force JS rendering | | |
| Wait after load | — | |
| Keep only selectors | | |
| Drop selectors | — | |
| Pick renderer | — | |
| Save to file | | (write the response yourself) |
| Structured JSON | | |
| Use a proxy | | |
| 需求 | CLI 参数 | MCP / REST 字段 |
|---|---|---|
| 输出格式 | | |
| 移除导航栏/页脚/侧边栏 | 默认开启;使用 | |
| 强制JS渲染 | | |
| 加载后等待 | — | |
| 仅保留指定选择器 | | |
| 移除指定选择器 | — | |
| 选择渲染器 | — | |
| 保存到文件 | | (自行处理响应结果) |
| 结构化JSON | | |
| 使用代理 | | |
?&crw scrape … &wait--jsrenderJs: truewaitFor.crw/grepheadmaxLength: 0--format json--extract '<schema>'?&crw scrape … &wait--jsrenderJs: truewaitFor.crw/grepheadmaxLength: 0--format json--extract '<schema>'