获取任意图片:标准抓取与 BrightData Web Unblocker 故障转移

初级

这是一个Engineering领域的自动化工作流,包含 5 个节点。主要使用 Set、HttpRequest、ManualTrigger 等节点。 获取任意图片:标准抓取与 BrightData Web Unblocker 故障转移

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "4a11afdb3c52fd098e3eae9fad4b39fdf1bbcde142f596adda46c795e366b326"
  },
  "nodes": [
    {
      "id": "67cbb238-606c-4db0-9471-7462e42adcf6",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -440,
        360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c8b1af78-ab84-4522-933a-77044c03401d",
      "name": "图像",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        360
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "6ae28575-0005-45f6-90cf-75f8b1b5abbc",
              "name": "image",
              "type": "string",
              "value": "https://example.com/image.jpg"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "b5338518-2914-4861-856a-c1d4d1ed0ff5",
      "name": "经典图像获取器",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        0,
        360
      ],
      "parameters": {
        "url": "={{ $json.image }}",
        "options": {
          "timeout": 1000
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "03041af1-e456-42e3-ae07-dceb927c38ea",
      "name": "解锁图像",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "failover node",
      "onError": "continueErrorOutput",
      "position": [
        300,
        440
      ],
      "parameters": {
        "url": "https://api.brightdata.com/request",
        "method": "POST",
        "options": {
          "response": {
            "response": {
              "neverError": true,
              "fullResponse": true,
              "responseFormat": "file"
            }
          },
          "allowUnauthorizedCerts": true
        },
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "zone",
              "value": "web_unlocker"
            },
            {
              "name": "url",
              "value": "={{ $json.image }}"
            },
            {
              "name": "format",
              "value": "raw"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer {{BRIGHTDATA_TOKEN}}"
            }
          ]
        }
      },
      "notesInFlow": true,
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "99d5ea18-15e5-49de-af04-2dec12073209",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        280
      ],
      "parameters": {
        "height": 120,
        "content": "## 解锁图像API"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "image": {
      "main": [
        [
          {
            "node": "Classic Image Getter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classic Image Getter": {
      "main": [
        [],
        [
          {
            "node": "Unlock Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

这是一个初级难度的工作流,适用于Engineering等场景。适合 n8n 新手,包含 1-5 个节点的简单工作流

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
初级
节点数量5
分类1
节点类型4
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
phil

phil

@phil

e-com AI automation: 90% time saved on repetitive tasks: product sheets, after-sales chatbots, etc. 🚀 save time, win customers

外部链接
在 n8n.io 上查看 →

分享此工作流