Automate Download Files for Migration -- 5

Job ID: 36712832

Budget: $30 – $250 USD

not-bot

We are in the process of migrating legacy email archive data from our current provider Dropsuite to Microsoft Online Archive.

I need a script that will look at a list of variables and automatically download the files to a set folder. We have many very large zip files that need to be download and saved locally. In addition, the url is password protected so the we will need to pass our login credentials to the site to access the downloads. This login is forms based so I am not sure how this will be possible using a CLI based tool

VAR-ID's
===========
18746
18777
19346
22746

Url variations to download from:
===========================
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link (save to D:\FOLDER\<var>.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=0 (save to D:\FOLDER\<var>0.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=1 (save to D:\FOLDER\<var>1.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=2 (save to D:\FOLDER\<var>2.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=3 (save to D:\FOLDER\<var>3.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=4 (save to D:\FOLDER\<var>4.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=5 (save to D:\FOLDER\<var>5.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=6 (save to D:\FOLDER\<var>6.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=7 (save to D:\FOLDER\<var>7.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=8 (save to D:\FOLDER\<var>8.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=9 (save to D:\FOLDER\<var>9.zip)
https://usw-2.dropmyemail.com/v2/en/downloads/<VAR>/download_link?url_index=10 (save to D:\FOLDER\<var>10.zip)
Related categories: Python Powershell cURL Scripting