シンプルなファイルダウンロード

中級

これはIT Ops分野の自動化ワークフローで、10個のノードを含みます。主にWait, Airtop, ManualTriggerなどのノードを使用。 Airtopブラウザを使ってSample.catから動画を自動ダウンロード

前提条件
  • 特別な前提条件なし、インポートしてすぐに使用可能

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "3sBreSJpd5kPX4b2",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "Simple File Download",
  "tags": [],
  "nodes": [
    {
      "id": "354c8e55-f322-4f63-bf53-84ff65bbd2d7",
      "name": "「Test workflow」をクリック時",
      "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": "Wait a few seconds to make sure the file is ready for download. Alternatively, you can loop until `Get file data` outputs status `available`\n"
      },
      "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\n\n# Automating Video File Download from Sample.cat with Airtop.ai\n\n\n## Use Case\nAutomating file downloads from web pages is useful for scenarios like bulk media retrieval, dataset access, or recurring content backups. This workflow ensures a hands-free, consistent process for retrieving downloadable content.\n\n\n## What This Automation Does\nThis automation performs a reliable download of a video file from a specified webpage using the following steps:\n\n- Initiates an Airtop browser session.\n- Opens a specified URL containing downloadable media.\n- Interacts with the page to click the download button.\n- Waits for the file to be processed and made available.\n- Retrieves metadata to confirm availability.\n- Downloads the file.\n- Terminates the browser session to clean up resources.\n\n\n## How It Works\n1. **Manual Trigger**: Activated by user test.\n2. **Session**: Starts an Airtop browser session.\n3. **Window**: Navigates to `https://sample.cat/en/webm`.\n4. **Interaction**: Simulates a click on the download button for the video titled “SD 640x360 (Seawater, drone view video, 30 FPS)”.\n5. **Wait**: Pauses for 10 seconds to allow the file to be ready for download.\n6. **Get File Data**: Checks for downloadable files in the session.\n7. **Download File**: Retrieves the file using its ID.\n8. **Terminate**: Ends the browser session to free up resources.\n\n\n## Setup Requirements\n1. [Airtop API Key](https://portal.airtop.ai/api-keys) — required to authenticate API calls.\n\n\n## Next Steps\n- **Enhance with Retry Logic**: Loop file availability check until `status = available` for more robust automation.\n- **Customize File Targets**: Dynamically pass URLs and button descriptors for multi-source downloads.\n- **Connect to Storage**: Pipe downloaded files to cloud storage or databases for archiving.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a371078e-c97a-4c14-8b39-e67fdd998c02",
  "connections": {
    "815f96e1-004e-4ad9-96b5-54d74ff4891f": {
      "main": [
        [
          {
            "node": "0343563a-d6e1-4f82-a3ad-c2c014981024",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6823c35c-30c0-4dc5-8ef9-f42fb3f8d58b": {
      "main": [
        [
          {
            "node": "d7f971b7-45b9-4e44-925d-8d89490828a0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2a1889bf-b197-4c08-9be9-b2762c1b6f61": {
      "main": [
        [
          {
            "node": "6823c35c-30c0-4dc5-8ef9-f42fb3f8d58b",
            "type": "main",
            "index": 0
          },
          {
            "node": "7a77f04f-c9e8-429f-81cc-c2155b777012",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "0343563a-d6e1-4f82-a3ad-c2c014981024": {
      "main": [
        [
          {
            "node": "5622799b-7063-414d-825e-b1e091ed7a7b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d7f971b7-45b9-4e44-925d-8d89490828a0": {
      "main": [
        [
          {
            "node": "815f96e1-004e-4ad9-96b5-54d74ff4891f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "354c8e55-f322-4f63-bf53-84ff65bbd2d7": {
      "main": [
        [
          {
            "node": "2a1889bf-b197-4c08-9be9-b2762c1b6f61",
            "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で表示

このワークフローを共有

カテゴリー

カテゴリー: 34