Bilibili動画ダウンローダー(Google Driveアップロード・アイメール通知対応)

上級

これはFile Management分野の自動化ワークフローで、19個のノードを含みます。主にIf, Wait, EmailSend, FormTrigger, GoogleDriveなどのノードを使用。 Bilibili 動画ダウンローダー(Google Drive アップロードとメール通知に対応)

前提条件
  • Google Drive API認証情報
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "95a5db18-2a99-4533-b0ae-e4e78cdd9256",
      "name": "フォーム送信時",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -2592,
        -160
      ],
      "webhookId": "99c989d4-d7e6-42d9-9f05-5235e2624149",
      "parameters": {
        "options": {},
        "formTitle": "Bilibili Video Downloader",
        "formFields": {
          "values": [
            {
              "fieldLabel": "URL",
              "placeholder": " https://www.bilibili.com/video/.....",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Bilibili Video Downloader"
      },
      "typeVersion": 2.2
    },
    {
      "id": "6c084dc4-1224-457e-a670-ae539db013b9",
      "name": "Google Drive 権限設定",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1248,
        -448
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "resource": "file",
        "operation": "share",
        "permissionsUi": {},
        "authentication": "oAuth2"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "qEkQ8MFn0uSHgAqY",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "9976f8b9-0b34-4049-99cf-e09b9ce9b093",
      "name": "API 応答ステータス確認",
      "type": "n8n-nodes-base.if",
      "position": [
        -2080,
        -144
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bcc58e3d-9609-4ec3-adb9-bc6098205818",
              "operator": {
                "type": "number",
                "operation": "equals"
              },
              "leftValue": "={{ $json.statusCode }}",
              "rightValue": 200
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "64c030aa-ae2d-4c27-b2d3-794cf2a7f88f",
      "name": "動画ファイルをダウンロード",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1808,
        -416
      ],
      "parameters": {
        "url": "={{ $json.body.medias[0].resource_url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "28b5ee25-d65e-408f-b41f-82383c400255",
      "name": "Google Driveに動画をアップロード",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1552,
        -448
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "qEkQ8MFn0uSHgAqY",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "b7349a5b-8bc1-4a09-993d-5ed40d3e0bf8",
      "name": "失敗通知メール",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -1360,
        112
      ],
      "webhookId": "525e3858-8b2a-4615-9fac-3e7a17a7d719",
      "parameters": {
        "html": "Hello,\n\nWe regret to inform you that your Bilibili video download request could not be completed successfully.\n\nThere might have been an issue with the URL provided or a problem with the video processing service.\n\nPlease double-check the IMDB URL and try again. If the problem persists, feel free to contact our support team for assistance.\n\nWe apologize for the inconvenience caused.\n",
        "options": {},
        "subject": "Bilibili Video Download Failed",
        "toEmail": "user@test.com",
        "fromEmail": "admin@test.com"
      },
      "credentials": {
        "smtp": {
          "id": "H0f4Gja9ECFRA34L",
          "name": "SMTP account 2"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "fee3736c-9a76-4d8c-b37a-4e5da4d1eb61",
      "name": "Driveリンク付き成功通知メール",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -1040,
        -448
      ],
      "webhookId": "ff0eb63c-87ae-45ce-a870-485ebc9cdb65",
      "parameters": {
        "html": "=Hello,\n\nYour requested Bilibili  video has been successfully downloaded and uploaded to Google Drive. It is now ready for you to access.\n\nYou can download or view the video directly from your Google Drive using the shared link below:\n {{ $('Upload Video to Google Drive').item.json.webContentLink }}\n",
        "options": {},
        "subject": "Your Bilibili Video is Ready and Shared via Google Drive",
        "toEmail": "user@tes.cm",
        "fromEmail": "admin@test.com"
      },
      "credentials": {
        "smtp": {
          "id": "H0f4Gja9ECFRA34L",
          "name": "SMTP account 2"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "f3201fd3-9f6d-4d9e-ae95-7e6d5ee20cd4",
      "name": "処理遅延",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1728,
        96
      ],
      "webhookId": "410a255f-0e20-4697-9584-b59829a5bfb8",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "74b26075-b51a-42af-b5ef-d8fe5f6ffa98",
      "name": "APIからBilibili動画情報を取得",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        -2368,
        -160
      ],
      "parameters": {
        "url": "https://bilibili-video-downloader.p.rapidapi.com/bili.php",
        "method": "POST",
        "options": {
          "response": {
            "response": {
              "fullResponse": true
            }
          }
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $json.URL }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "bilibili-video-downloader.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5afc6028-973d-4ffc-99c8-b202b30ac9bb",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2672,
        -256
      ],
      "parameters": {
        "height": 256,
        "content": "Triggers the workflow when a user submits a form containing a Bilibili video URL."
      },
      "typeVersion": 1
    },
    {
      "id": "89e4649e-42cc-4894-a5c5-b990d0d19a6d",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2416,
        -256
      ],
      "parameters": {
        "height": 240,
        "content": "Sends the submitted URL to the Bilibili downloader API to retrieve video details and media links."
      },
      "typeVersion": 1
    },
    {
      "id": "68e63b6d-05fd-4b2e-a96d-3ffe7dcc9c89",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2160,
        -256
      ],
      "parameters": {
        "height": 256,
        "content": "Verifies that the API response returned a 200 status code indicating success."
      },
      "typeVersion": 1
    },
    {
      "id": "ca9b0fc9-56b9-4720-beec-ec86ff4b64fb",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1872,
        -528
      ],
      "parameters": {
        "height": 240,
        "content": "Downloads the Bilibili video file using the resource URL from the API response."
      },
      "typeVersion": 1
    },
    {
      "id": "54b888df-1815-48ff-8b77-4aaf3c32a428",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -544
      ],
      "parameters": {
        "height": 240,
        "content": "Uploads the downloaded video file to the connected Google Drive account."
      },
      "typeVersion": 1
    },
    {
      "id": "890fc4ed-03a7-4846-92b9-3662a82512f2",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -544
      ],
      "parameters": {
        "height": 240,
        "content": "Sets sharing permissions for the uploaded video file to make it accessible to the user."
      },
      "typeVersion": 1
    },
    {
      "id": "fe2bf49d-45a0-4ee6-ad45-e573b51976ee",
      "name": "付箋6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        -544
      ],
      "parameters": {
        "height": 240,
        "content": "Sends an email to the user with the Google Drive link to the successfully uploaded video."
      },
      "typeVersion": 1
    },
    {
      "id": "20422525-78c9-49f1-8a71-c4e396d9fc77",
      "name": "付箋7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1760,
        -16
      ],
      "parameters": {
        "height": 256,
        "content": "Adds a short delay in workflow execution before handling a failed download scenario."
      },
      "typeVersion": 1
    },
    {
      "id": "1c556652-70c7-4186-beff-76ea0c5316ce",
      "name": "付箋8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1424,
        0
      ],
      "parameters": {
        "height": 256,
        "content": "Sends an email notifying the user that the video download process failed."
      },
      "typeVersion": 1
    },
    {
      "id": "1ac5c0d8-41af-4a52-859f-d437e3c5c125",
      "name": "付箋9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3552,
        -528
      ],
      "parameters": {
        "width": 592,
        "height": 1168,
        "content": "# 🎬 Bilibili Video Downloader\n\nThis workflow allows users to submit a Bilibili video URL, automatically downloads the video via an API, uploads it to Google Drive, and emails the user with the shared link or an error notification.\n\n---\n\n### **🧩 Node Explanations**\n\n**1. On form submission**\n\n> Triggers the workflow when a user submits a form containing a Bilibili video URL.\n\n**2. Fetch Bilibili Video Info from API**\n\n> Sends the submitted URL to the Bilibili downloader API to retrieve video details and media links.\n\n**3. Check API Response Status**\n\n> Verifies if the API returned a successful `200` status response before proceeding.\n\n**4. Download Video File**\n\n> Downloads the Bilibili video file using the provided media URL from the API response.\n\n**5. Upload Video to Google Drive**\n\n> Uploads the downloaded video to the specified Google Drive folder.\n\n**6. Google Drive Set Permission**\n\n> Adjusts sharing settings to make the uploaded video accessible via a public or shareable link.\n\n**7. Success Notification Email with Drive Link**\n\n> Sends an email to the user containing the Google Drive link to the uploaded video.\n\n**8. Processing Delay**\n\n> Introduces a delay before executing the failure notification process.\n\n**9. Failure Notification Email**\n\n> Sends an email alerting the user that the video download or upload process failed.\n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "f3201fd3-9f6d-4d9e-ae95-7e6d5ee20cd4": {
      "main": [
        [
          {
            "node": "b7349a5b-8bc1-4a09-993d-5ed40d3e0bf8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "95a5db18-2a99-4533-b0ae-e4e78cdd9256": {
      "main": [
        [
          {
            "node": "74b26075-b51a-42af-b5ef-d8fe5f6ffa98",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "64c030aa-ae2d-4c27-b2d3-794cf2a7f88f": {
      "main": [
        [
          {
            "node": "28b5ee25-d65e-408f-b41f-82383c400255",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9976f8b9-0b34-4049-99cf-e09b9ce9b093": {
      "main": [
        [
          {
            "node": "64c030aa-ae2d-4c27-b2d3-794cf2a7f88f",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "f3201fd3-9f6d-4d9e-ae95-7e6d5ee20cd4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6c084dc4-1224-457e-a670-ae539db013b9": {
      "main": [
        [
          {
            "node": "fee3736c-9a76-4d8c-b37a-4e5da4d1eb61",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "28b5ee25-d65e-408f-b41f-82383c400255": {
      "main": [
        [
          {
            "node": "6c084dc4-1224-457e-a670-ae539db013b9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "74b26075-b51a-42af-b5ef-d8fe5f6ffa98": {
      "main": [
        [
          {
            "node": "9976f8b9-0b34-4049-99cf-e09b9ce9b093",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

上級 - ファイル管理

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

Facebook動画をGoogleドライブにダウンロードし、自動のに表に記録する
Facebookの動画をGoogleドライブにダウンロードし、テーブルの自動記録にダウンロードログを記録
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 ノードSk developer
ファイル管理
Instagram動画をGoogleドライブにダウンロードし、自動のにメールで送付する
Instagramの動画をGoogleドライブにダウンロードし、メールで自動送信
If
Email Send
Form Trigger
+
If
Email Send
Form Trigger
15 ノードSk developer
ファイル管理
RapidAPI統合を通じてSlideshareプレゼンテーションをGoogleドライブにダウンロード
RapidAPI統合でSlideshareのプレゼンテーションをGoogleデリカレントダウンロード
If
Wait
Form Trigger
+
If
Wait
Form Trigger
17 ノードSk developer
ファイル管理
Threadsの動画をダウンロードし、結果をGoogleスプレッドシートに記録
Threadsの動画をダウンロードして結果をGoogleスプレッドシートに記録
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 ノードSk developer
ファイル管理
RapidAPI統合による任意のプラットフォームの動画をGoogleドライブにダウンロード
RapidAPI統合を通じて、任意のプラットフォームの動画をGoogleドライブにダウンロード
If
Wait
Form Trigger
+
If
Wait
Form Trigger
17 ノードSk developer
ファイル管理
IMDBビデオ自動ダウンローダー(Google Driveアップロード&メール通知付き)
IMDB動画自動ダウンロードツール(Google Driveアップロード+メールアラート付き)
If
Wait
Email Send
+
If
Wait
Email Send
19 ノードSk developer
コンテンツ作成
ワークフロー情報
難易度
上級
ノード数19
カテゴリー1
ノードタイプ7
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34