README
Automating Video File Download from Sample.cat with Airtop.ai
Use Case
Automating 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.
What This Automation Does
This automation performs a reliable download of a video file from a specified webpage using the following steps:
- Initiates an Airtop browser session.
- Opens a specified URL containing downloadable media.
- Interacts with the page to click the download button.
- Waits for the file to be processed and made available.
- Retrieves metadata to confirm availability.
- Downloads the file.
- Terminates the browser session to clean up resources.
How It Works
- Manual Trigger: Activated by user test.
- Session: Starts an Airtop browser session.
- Window: Navigates to
https://sample.cat/en/webm
.
- Interaction: Simulates a click on the download button for the video titled “SD 640x360 (Seawater, drone view video, 30 FPS)”.
- Wait: Pauses for 10 seconds to allow the file to be ready for download.
- Get File Data: Checks for downloadable files in the session.
- Download File: Retrieves the file using its ID.
- Terminate: Ends the browser session to free up resources.
Setup Requirements
- Airtop API Key — required to authenticate API calls.
Next Steps
- Enhance with Retry Logic: Loop file availability check until
status = available
for more robust automation.
- Customize File Targets: Dynamically pass URLs and button descriptors for multi-source downloads.
- Connect to Storage: Pipe downloaded files to cloud storage or databases for archiving.
Read more about automating file downloads from the web