任意の画像を取得:標準のなスクレイピングと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": "image",
      "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": "Classic Image Getter",
      "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": "Unlock Image",
      "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": "## Unlock image API\n\n[Inscription - Free Trial](https://get.brightdata.com/image-unlocker)"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "c8b1af78-ab84-4522-933a-77044c03401d": {
      "main": [
        [
          {
            "node": "b5338518-2914-4861-856a-c1d4d1ed0ff5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b5338518-2914-4861-856a-c1d4d1ed0ff5": {
      "main": [
        [],
        [
          {
            "node": "03041af1-e456-42e3-ae07-dceb927c38ea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "67cbb238-606c-4db0-9471-7462e42adcf6": {
      "main": [
        [
          {
            "node": "c8b1af78-ab84-4522-933a-77044c03401d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

初級 - エンジニアリング

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(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で表示

このワークフローを共有

カテゴリー

カテゴリー: 34