一篇 r/n8n 帖子质疑 Firecrawl 是否是文章到社交工作流程的正确选择。对于每天一篇文章的流量来说,答案是否定的——Firecrawl 太过分了。本教程将介绍迁移过程。
前置条件
- 使用 Firecrawl 的现有 n8n 工作流程
- Scavio API 密钥
操作指南
步骤 1: 识别 Firecrawl HTTP 节点
通常 POST /v1/scrape 或 /v1/crawl。
Text
# Before: HTTP node hits https://api.firecrawl.dev/v1/scrape with Bearer token.步骤 2: 替换 URL 和标头
使用 x-api-key POST /api/v1/extract。
Text
# After: HTTP node hits https://api.scavio.dev/api/v1/extract with x-api-key header.步骤 3: 映射响应形状
Firecrawl 在 data.markdown 下返回 markdown。
Text
# Firecrawl: {{$json.data.markdown}}
# Scavio: {{$json.markdown}}步骤 4: 更新下游LLM提示
如果提示引用了 Firecrawl 特定的字段。
Text
# Most prompts that referenced 'data.markdown' now reference '$json.markdown' directly.步骤 5: 确认成本转移
每次提取数学。
Text
# Firecrawl Hobby: 3,000 credits / $16/mo = $0.005/extract.
# Scavio: 7,000 credits / $30/mo = $0.0043/extract.Python 示例
Python
# Equivalent in Python with requests, ~10-min migration.JavaScript 示例
JavaScript
// Same in n8n's JavaScript code nodes.预期输出
JSON
n8n workflow runs on Scavio at lower per-extract cost. Optional bonus: same Scavio key calls /reddit/search if the workflow wants community angle.