How to automate file downloads in the cloud
To automate the process of downloading in the cloud from a website or web application, you can utilize the "Download a file to Google Drive" step.
# How to download a file in the cloud
Assuming you have already added a "Go to page" step to your automation, use the step finder to add the "Download a file to Google Drive" step. Then configure the step as follows:
Design pattern: Download a file to Google Drive
- 1 Go to page
- 2 Download a file to Google Drive
How
- Click "Select" and choose the file you wish to download.
- Next, enter the URL of the folder in Google Drive to download to.
- Enter a name for the file to be downloaded.
# How to download files from multiple pages
To download images from multiple web pages, you can use either of the aforementioned steps inserted inside a loop. The pages should use the same template, like the image listing pages. Additionally, you'll need a data source such as a Google Sheet with the URLs:
Design pattern: Download files to Google Drive loop
- 1 Read data from a Google Sheet
- 2 Loop through data
- 2.1 Go to page
- 2.2 Download a file to Google Drive
How
- Create a Google Sheet with your page URLs.
- Begin with a "Read data from a Google Sheet" step to retrieve the URLs.
- Add a "Loop through data" step.
- Inside the loop, insert a "Go to page" step. Click "Insert Data" choose the Google Sheet containing the URLs.
- Click "Add sub-step", and insert the "Download a file to Google Drive" step inside the loop.
- Click "Select" and choose the file you wish to download.
- Next, enter the URL of the folder in Google Drive to download to.
- Enter a name for the file to be downloaded.
# How to download multiple files on the same page
To download multiple files from the same page, the automation can loop through custom selectors.
Design pattern: Download files to Google Drive CSS selectors
- 1 Read data from a Google Sheet
- 2 Loop through data
- 2.1 Go to page
- 2.2 Download a file to Google Drive
How
- Create a Google Sheet with your custom selectors one for each image separated by rows.
- Begin with a "Read data from a Google Sheet" step to retrieve the selectors.
- Insert a "Go to page" step.
- Add a "Loop through data" step.
- Inside the loop, "Add sub-step", and insert the "Download a file to Google Drive" step inside the loop.
- Click "Select", then custom, followed by "Set selector from data" and choose the Google Sheet.
- Next, enter the URL of the folder in Google Drive to download to.
- Enter a name for the files to be downloaded, a unique number will be appended.
# Advanced settings
# Force download
If some files open in the browser window instead of downloading, toggle the switch to "on" and tick to force download. If issues persist, contact support.
# Auto convert
Automatically convert the downloaded file to a Google Docs editor format by toggling and ticking the box.
# Download start wait time
Increase the length of time axiom will wait for a download to start by toggling the switch and setting a time in hundredths of a second
# Issues when automating file downloads
If the file does not download, please ensure the folder path is correct.
# Using the "Download a file to Google Drive" step to download files locally
There is an option to do this read more here.