下载Threads视频并将结果记录到Google表格
高级
这是一个File Management领域的自动化工作流,包含 19 个节点。主要使用 If, Wait, FormTrigger, GoogleDrive, HttpRequest 等节点。 下载Threads视频并将结果记录到Google表格中
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752"
},
"nodes": [
{
"id": "a1b4a7ad-efec-4a7c-a7d0-057b01cae303",
"name": "表单提交时",
"type": "n8n-nodes-base.formTrigger",
"position": [
848,
592
],
"webhookId": "99c989d4-d7e6-42d9-9f05-5235e2624149",
"parameters": {
"options": {},
"formTitle": "Threads Downloader",
"formFields": {
"values": [
{
"fieldLabel": "URL",
"placeholder": "https://www.threads.net",
"requiredField": true
}
]
},
"formDescription": "Threads Downloader"
},
"typeVersion": 2.2
},
{
"id": "6510719b-49cf-4264-985b-1ed5b98b1a9f",
"name": "获取Threads视频数据",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
1072,
592
],
"parameters": {
"url": "https://threads-downloader1.p.rapidapi.com/threads.php",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "url",
"value": "={{ $json.URL }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-host",
"value": "threads-downloader1.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "your key"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "d069c2dc-7576-478f-8510-4beb55871bff",
"name": "检查视频是否存在",
"type": "n8n-nodes-base.if",
"position": [
1360,
608
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "bcc58e3d-9609-4ec3-adb9-bc6098205818",
"operator": {
"type": "string",
"operation": "notEmpty",
"singleValue": true
},
"leftValue": "={{ $json.video_urls[0].download_url }}",
"rightValue": "success"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "01d9dd0c-4370-4ecf-8df3-55de50bb09b7",
"name": "下载Threads视频文件",
"type": "n8n-nodes-base.httpRequest",
"position": [
1632,
320
],
"parameters": {
"url": "={{ $json.video_urls[0].download_url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "ddde32c8-f9dc-40cf-8180-b232bb40d6a8",
"name": "上传视频到Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
1888,
304
],
"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": "5e5256dd-e767-484d-8b4f-c0dc62b71f9d",
"name": "设置Google Drive共享权限",
"type": "n8n-nodes-base.googleDrive",
"position": [
2192,
304
],
"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": "da8b91e6-99c7-4d84-abfb-9358f4b1b87e",
"name": "成功记录到Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
2528,
384
],
"parameters": {
"columns": {
"value": {
"URL": "={{ $('On form submission').item.json.URL }}",
"Drive_URL": "={{ $('Upload Video to Google Drive').item.json.webViewLink }}"
},
"schema": [
{
"id": "URL",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "URL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Drive_URL",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Drive_URL",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"URL"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "url",
"value": ""
},
"documentId": {
"__rl": true,
"mode": "url",
"value": ""
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "qUtlCnYpk7bXXaYp",
"name": "Google Sheets account 3"
}
},
"typeVersion": 4.6
},
{
"id": "05a6f22b-b42c-4bf8-8ad6-5e671cf33c3e",
"name": "记录失败前的等待",
"type": "n8n-nodes-base.wait",
"position": [
1712,
848
],
"webhookId": "410a255f-0e20-4697-9584-b59829a5bfb8",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "a4554ac9-23bb-490f-b6fa-8ed9b923214b",
"name": "失败下载记录到Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
2192,
848
],
"parameters": {
"columns": {
"value": {
"URL": "{{ $('On form submission').item.json.URL }}",
"Drive_URL": "N/A"
},
"schema": [
{
"id": "URL",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "URL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Drive_URL",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Drive_URL",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "append",
"sheetName": {
"__rl": true,
"mode": "url",
"value": ""
},
"documentId": {
"__rl": true,
"mode": "url",
"value": ""
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "Rt0RWApx8PL9t0RF",
"name": "Google Docs account"
}
},
"typeVersion": 4.6
},
{
"id": "4ce0b5c3-f2aa-4a40-8430-5dbda2c4d791",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
768,
464
],
"parameters": {
"height": 272,
"content": "当用户通过表单提交URL时触发工作流。"
},
"typeVersion": 1
},
{
"id": "24997fd1-523a-46fc-8ef2-294b4fe148f3",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1024,
464
],
"parameters": {
"height": 272,
"content": "将提交的URL发送到Threads下载器API以获取视频数据。"
},
"typeVersion": 1
},
{
"id": "6479a5f8-34a8-41aa-b252-150c08be5cb0",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1296,
496
],
"parameters": {
"height": 256,
"content": "检查API是否返回了有效的视频下载URL。"
},
"typeVersion": 1
},
{
"id": "4d12f8a3-6e47-4186-a864-944ac53f20b0",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1568,
240
],
"parameters": {
"height": 240,
"content": "从提供的下载URL下载视频文件。"
},
"typeVersion": 1
},
{
"id": "a4c56692-00f3-48ec-8fac-c0fa7d872212",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1840,
240
],
"parameters": {
"height": 240,
"content": "将下载的视频上传到指定的Google Drive文件夹。"
},
"typeVersion": 1
},
{
"id": "741dbb91-6575-4ed7-888d-548a81c017f6",
"name": "便利贴5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2112,
240
],
"parameters": {
"height": 240,
"content": "设置上传文件的共享设置,使其可通过链接访问。"
},
"typeVersion": 1
},
{
"id": "dc7491b4-1fca-4384-b0ad-137baa4f5e42",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
2432,
288
],
"parameters": {
"height": 224,
"content": "记录成功下载视频的原始URL和Google Drive链接。"
},
"typeVersion": 1
},
{
"id": "655f8026-7973-4fcd-8996-ddb074e1409c",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1648,
736
],
"parameters": {
"height": 256,
"content": "在记录失败下载前添加暂停以避免时序问题。"
},
"typeVersion": 1
},
{
"id": "23b570fb-1b5b-4af6-90e9-ff52fa18842f",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
2112,
752
],
"parameters": {
"height": 240,
"content": "记录失败视频下载的原始URL,Google Drive链接显示为“N/A”。"
},
"typeVersion": 1
},
{
"id": "72e23121-48bc-47f3-8311-3f1a7259bb5e",
"name": "便签 9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-256,
256
],
"parameters": {
"width": 800,
"height": 912,
"content": "# Threads视频下载器与Google Drive记录器"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"On form submission": {
"main": [
[
{
"node": "Fetch Threads Video Data",
"type": "main",
"index": 0
}
]
]
},
"Check If Video Exists": {
"main": [
[
{
"node": "Download Threads Video File",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait Before Logging Failure",
"type": "main",
"index": 0
}
]
]
},
"Fetch Threads Video Data": {
"main": [
[
{
"node": "Check If Video Exists",
"type": "main",
"index": 0
}
]
]
},
"Download Threads Video File": {
"main": [
[
{
"node": "Upload Video to Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Wait Before Logging Failure": {
"main": [
[
{
"node": "Log Failed Download to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Upload Video to Google Drive": {
"main": [
[
{
"node": "Set Google Drive Sharing Permissions",
"type": "main",
"index": 0
}
]
]
},
"Set Google Drive Sharing Permissions": {
"main": [
[
{
"node": "Log Success to Google Sheets",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 文件管理
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Facebook视频下载至Google云端硬盘并自动记录到表格
将Facebook视频下载到Google云端硬盘,并在表格中自动记录下载日志
If
Wait
Form Trigger
+4
19 节点Sk developer
文件管理
通过RapidAPI集成将Slideshare演示文稿下载至Google云端硬盘
通过RapidAPI集成将Slideshare演示文稿下载到Google云端硬盘
If
Wait
Form Trigger
+4
17 节点Sk developer
文件管理
通过RapidAPI集成将任意平台视频下载至Google云端硬盘
通过RapidAPI集成将任意平台的视频下载到Google云端硬盘
If
Wait
Form Trigger
+4
17 节点Sk developer
文件管理
Bilibili 视频下载器,支持 Google Drive 上传和邮件通知
Bilibili 视频下载器,支持 Google Drive 上传和邮件通知
If
Wait
Email Send
+4
19 节点Sk developer
文件管理
使用RapidAPI将LinkedIn视频转换为MP4并存储到Google Drive和Sheets
使用RapidAPI将LinkedIn视频转换为MP4并存储到Google Drive和Sheets
If
Wait
Form Trigger
+4
16 节点Sk developer
内容创作
批量下载无水印TikTok视频至Google Drive并追踪
批量下载无水印TikTok视频至Google Drive并追踪
Wait
Google Drive
Http Request
+4
21 节点Sk developer
文件管理