8
n8n 中文网amn8n.com

使用RapidAPI将LinkedIn视频转换为MP4并存储到Google Drive和Sheets

高级

这是一个Content Creation领域的自动化工作流,包含 16 个节点。主要使用 If, Wait, FormTrigger, GoogleDrive, HttpRequest 等节点。 使用RapidAPI将LinkedIn视频转换为MP4并存储到Google Drive和Sheets

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "1426bdd3-b67c-40be-a93b-4017b988a507",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -500,
        -20
      ],
      "webhookId": "99c989d4-d7e6-42d9-9f05-5235e2624149",
      "parameters": {
        "options": {},
        "formTitle": "Linkedin to MP4",
        "formFields": {
          "values": [
            {
              "fieldLabel": "URL",
              "placeholder": "https://linkedin.com/abcdefg",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Linkedin to MP4 Converter"
      },
      "typeVersion": 2.2
    },
    {
      "id": "1535cbdf-43cf-45ed-a417-598fd4099031",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        -280,
        -20
      ],
      "parameters": {
        "url": "https://linkedin-video-downloader3.p.rapidapi.com/index.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": "linkedin-video-downloader3.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "a8eab174-692b-43e1-9d83-1a4bd365e8a5",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        20,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "bcc58e3d-9609-4ec3-adb9-bc6098205818",
              "operator": {
                "type": "boolean",
                "operation": "false",
                "singleValue": true
              },
              "leftValue": "={{ $json.error }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "9f8a90f9-c6c5-4ca5-8685-c3bc3f2eb4a2",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        360,
        240
      ],
      "webhookId": "410a255f-0e20-4697-9584-b59829a5bfb8",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "0f4edd02-cb08-4fbf-92c1-88c3d0155794",
      "name": "下载 mp4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        -280
      ],
      "parameters": {
        "url": "={{ $json.medias[0].url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "42b59712-c67b-41bd-aa92-07428f2f9f89",
      "name": "Google Drive 设置权限",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        840,
        -300
      ],
      "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": "49f20dad-a161-4093-bb0b-ddf8d0f38001",
      "name": "上传至Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        540,
        -300
      ],
      "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": "1ad3686d-10e7-4d42-aa28-0d51c20b6c4a",
      "name": "Google Sheets 追加行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        840,
        240
      ],
      "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": "415e26db-3d6d-4cd1-8485-bc861ad39a64",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -300
      ],
      "parameters": {
        "height": 500,
        "content": "## 🟢 **1. 表单提交时**"
      },
      "typeVersion": 1
    },
    {
      "id": "09741083-a9b0-4e15-8824-a2ff59aae991",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -300
      ],
      "parameters": {
        "height": 500,
        "content": "## 🌐 **2. HTTP 请求**"
      },
      "typeVersion": 1
    },
    {
      "id": "6bbbec40-7cfb-49c2-aabc-8d24b9f97852",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -300
      ],
      "parameters": {
        "height": 500,
        "content": "## 🔍 **3. 条件判断**"
      },
      "typeVersion": 1
    },
    {
      "id": "3c071121-ab03-46c2-bc3b-37cfbc8efcc4",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -540
      ],
      "parameters": {
        "height": 440,
        "content": "## ⬇️ **4. 下载 mp4**"
      },
      "typeVersion": 1
    },
    {
      "id": "b520286d-f01d-45dd-b8a4-bbb7b6ffea4a",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -540
      ],
      "parameters": {
        "height": 400,
        "content": "## ☁️ **5. 上传到 Google Drive**"
      },
      "typeVersion": 1
    },
    {
      "id": "19f78901-47c2-4346-a2fd-8fba54ce76a1",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -540
      ],
      "parameters": {
        "height": 380,
        "content": "## 🔑 **6. Google Drive 设置权限**"
      },
      "typeVersion": 1
    },
    {
      "id": "2d3c1c4b-3e48-46a8-b8a7-3bb449f5031c",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        0
      ],
      "parameters": {
        "height": 360,
        "content": "## ⏱️ **8. 等待**"
      },
      "typeVersion": 1
    },
    {
      "id": "0ae98a86-e0c6-4c47-a62b-5efc82a6bf99",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -120
      ],
      "parameters": {
        "height": 480,
        "content": "## 📑 **9. Google Sheets 追加行**"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Download mp4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Google Sheets Append Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download mp4": {
      "main": [
        [
          {
            "node": "Upload To Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload To Google Drive": {
      "main": [
        [
          {
            "node": "Google Drive Set Permission",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Set Permission": {
      "main": [
        []
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作

需要付费吗?

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

工作流信息
难度等级
高级
节点数量16
分类1
节点类型7
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流