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获取B站视频信息",
"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": "当用户提交包含B站视频URL的表单时触发工作流"
},
"typeVersion": 1
},
{
"id": "89e4649e-42cc-4894-a5c5-b990d0d19a6d",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2416,
-256
],
"parameters": {
"height": 240,
"content": "将提交的URL发送至B站下载器API以获取视频详情和媒体链接"
},
"typeVersion": 1
},
{
"id": "68e63b6d-05fd-4b2e-a96d-3ffe7dcc9c89",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2160,
-256
],
"parameters": {
"height": 256,
"content": "验证API响应是否返回表示成功的200状态码"
},
"typeVersion": 1
},
{
"id": "ca9b0fc9-56b9-4720-beec-ec86ff4b64fb",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1872,
-528
],
"parameters": {
"height": 240,
"content": "使用API响应中的资源URL下载B站视频文件"
},
"typeVersion": 1
},
{
"id": "54b888df-1815-48ff-8b77-4aaf3c32a428",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1600,
-544
],
"parameters": {
"height": 240,
"content": "将下载的视频文件上传到关联的Google Drive账户"
},
"typeVersion": 1
},
{
"id": "890fc4ed-03a7-4846-92b9-3662a82512f2",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1328,
-544
],
"parameters": {
"height": 240,
"content": "为上传的视频文件设置共享权限,使用户可以访问"
},
"typeVersion": 1
},
{
"id": "fe2bf49d-45a0-4ee6-ad45-e573b51976ee",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1072,
-544
],
"parameters": {
"height": 240,
"content": "向用户发送包含已上传视频Google Drive链接的邮件"
},
"typeVersion": 1
},
{
"id": "20422525-78c9-49f1-8a71-c4e396d9fc77",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1760,
-16
],
"parameters": {
"height": 256,
"content": "在处理下载失败场景前,在工作流执行中添加短暂延迟"
},
"typeVersion": 1
},
{
"id": "1c556652-70c7-4186-beff-76ea0c5316ce",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1424,
0
],
"parameters": {
"height": 256,
"content": "发送邮件通知用户视频下载过程失败"
},
"typeVersion": 1
},
{
"id": "1ac5c0d8-41af-4a52-859f-d437e3c5c125",
"name": "便签9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3552,
-528
],
"parameters": {
"width": 592,
"height": 1168,
"content": "# 🎬 B站视频下载器"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Processing Delay": {
"main": [
[
{
"node": "Failure Notification Email",
"type": "main",
"index": 0
}
]
]
},
"On form submission": {
"main": [
[
{
"node": "Fetch Bilibili Video Info from API",
"type": "main",
"index": 0
}
]
]
},
"Download Video File": {
"main": [
[
{
"node": "Upload Video to Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Check API Response Status": {
"main": [
[
{
"node": "Download Video File",
"type": "main",
"index": 0
}
],
[
{
"node": "Processing Delay",
"type": "main",
"index": 0
}
]
]
},
"Google Drive Set Permission": {
"main": [
[
{
"node": "Success Notification Email with Drive Link",
"type": "main",
"index": 0
}
]
]
},
"Upload Video to Google Drive": {
"main": [
[
{
"node": "Google Drive Set Permission",
"type": "main",
"index": 0
}
]
]
},
"Fetch Bilibili Video Info from API": {
"main": [
[
{
"node": "Check API Response Status",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 文件管理
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Facebook视频下载至Google云端硬盘并自动记录到表格
将Facebook视频下载到Google云端硬盘,并在表格中自动记录下载日志
If
Wait
Form Trigger
+4
19 节点Sk developer
文件管理
Instagram视频下载至Google云端硬盘并自动邮件发送
将Instagram视频下载到Google云端硬盘,并自动通过邮件发送
If
Email Send
Form Trigger
+3
15 节点Sk developer
文件管理
通过RapidAPI集成将Slideshare演示文稿下载至Google云端硬盘
通过RapidAPI集成将Slideshare演示文稿下载到Google云端硬盘
If
Wait
Form Trigger
+4
17 节点Sk developer
文件管理
下载Threads视频并将结果记录到Google表格
下载Threads视频并将结果记录到Google表格中
If
Wait
Form Trigger
+4
19 节点Sk developer
文件管理
通过RapidAPI集成将任意平台视频下载至Google云端硬盘
通过RapidAPI集成将任意平台的视频下载到Google云端硬盘
If
Wait
Form Trigger
+4
17 节点Sk developer
文件管理
YouTube 转 MP3 转换器(RapidAPI)- 上传至云端硬盘并邮件发送链接
使用 RapidAPI 的 YouTube 转 MP3 转换器,支持上传至云端硬盘并邮件发送链接
Wait
Email Send
Form Trigger
+3
15 节点Sk developer
文件管理