8
n8n 中文网amn8n.com

简单文件下载

中级

这是一个IT Ops领域的自动化工作流,包含 10 个节点。主要使用 Wait, Airtop, ManualTrigger 等节点。 使用Airtop浏览器自动化从Sample.cat自动下载视频

前置要求
  • 无特殊前置要求,导入即可使用

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "3sBreSJpd5kPX4b2",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "简单文件下载",
  "tags": [],
  "nodes": [
    {
      "id": "354c8e55-f322-4f63-bf53-84ff65bbd2d7",
      "name": "当点击“测试工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -440,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "37e66a0e-bbce-449d-a769-77470b4ea57f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -240
      ],
      "parameters": {
        "width": 220,
        "height": 300,
        "content": "等待几秒钟以确保文件准备好下载。或者,您可以循环直到 `获取文件数据` 输出状态为 `available`"
      },
      "typeVersion": 1
    },
    {
      "id": "2a1889bf-b197-4c08-9be9-b2762c1b6f61",
      "name": "会话",
      "type": "n8n-nodes-base.airtop",
      "position": [
        -220,
        0
      ],
      "parameters": {
        "additionalFields": {}
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "6823c35c-30c0-4dc5-8ef9-f42fb3f8d58b",
      "name": "窗口",
      "type": "n8n-nodes-base.airtop",
      "position": [
        0,
        -100
      ],
      "parameters": {
        "url": "https://sample.cat/en/webm",
        "resource": "window",
        "getLiveView": true,
        "disableResize": true,
        "additionalFields": {}
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7a77f04f-c9e8-429f-81cc-c2155b777012",
      "name": "终止",
      "type": "n8n-nodes-base.airtop",
      "position": [
        0,
        100
      ],
      "parameters": {
        "operation": "terminate"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "815f96e1-004e-4ad9-96b5-54d74ff4891f",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        440,
        -100
      ],
      "webhookId": "d83ebeef-84d1-4c1b-bf2e-c87e2e0c3d20",
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    },
    {
      "id": "0343563a-d6e1-4f82-a3ad-c2c014981024",
      "name": "获取文件数据",
      "type": "n8n-nodes-base.airtop",
      "position": [
        660,
        -100
      ],
      "parameters": {
        "limit": 1,
        "resource": "file",
        "sessionIds": "={{ $('Session').item.json.sessionId }}",
        "outputSingleItem": false
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d7f971b7-45b9-4e44-925d-8d89490828a0",
      "name": "点击下载按钮",
      "type": "n8n-nodes-base.airtop",
      "position": [
        220,
        -100
      ],
      "parameters": {
        "resource": "interaction",
        "additionalFields": {},
        "elementDescription": "Blue download button for file \"SD 640x360 (Seawater, drone view video, 30 FPS)\""
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5622799b-7063-414d-825e-b1e091ed7a7b",
      "name": "下载文件",
      "type": "n8n-nodes-base.airtop",
      "position": [
        880,
        -100
      ],
      "parameters": {
        "fileId": "={{ $json.id }}",
        "resource": "file",
        "operation": "get",
        "outputBinaryFile": true
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "defcc9ed-8c0a-4bbc-aa3a-f60f418f20a8",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        -460
      ],
      "parameters": {
        "color": 5,
        "width": 560,
        "height": 1120,
        "content": "README"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a371078e-c97a-4c14-8b39-e67fdd998c02",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get file data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window": {
      "main": [
        [
          {
            "node": "Click on download button",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Session": {
      "main": [
        [
          {
            "node": "Window",
            "type": "main",
            "index": 0
          },
          {
            "node": "Terminate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get file data": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Click on download button": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - IT 运维

需要付费吗?

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

工作流信息
难度等级
中级
节点数量10
分类1
节点类型4
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者

Airtop provides an intelligent browser automation API for AI agents, enabling seamless web interaction, including login, navigation, and data extraction from any site, even those with complex authentication - all with natural language instructions.In simple terms, we allow you to automate anything humans can do online, on any site with just words

外部链接
在 n8n.io 查看

分享此工作流