Simple téléchargement de fichiers

Intermédiaire

Ceci est unIT Opsworkflow d'automatisation du domainecontenant 10 nœuds.Utilise principalement des nœuds comme Wait, Airtop, ManualTrigger. Téléchargement automatique de vidéos depuis Sample.cat avec l'automatisation du navigateur Airtop

Prérequis
  • Aucun prérequis spécial, prêt à l'emploi après importation

Catégorie

Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "3sBreSJpd5kPX4b2",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "Simple File Download",
  "tags": [],
  "nodes": [
    {
      "id": "354c8e55-f322-4f63-bf53-84ff65bbd2d7",
      "name": "Lors du clic sur 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -440,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "37e66a0e-bbce-449d-a769-77470b4ea57f",
      "name": "Note adhésive",
      "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": "Session",
      "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": "Fenêtre",
      "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": "Terminer",
      "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": "Attendre",
      "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": "Obtenir les données du fichier",
      "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": "Cliquer sur le bouton de téléchargement",
      "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": "Télécharger le fichier",
      "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": "Note adhésive1",
      "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
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Opérations IT

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds10
Catégorie1
Types de nœuds4
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur

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

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34