Created
January 20, 2016 13:48
-
-
Save pmarques/ef59f5e20e1d61c5e0fd to your computer and use it in GitHub Desktop.
Amazon Cloud Drive multiple files download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Open Amazon Cloud Drive folder and run this script to download all the files in the folder. | |
*/ | |
var items = document.getElementsByClassName('item'); | |
var i; | |
var url | |
var urls = [] | |
for(i = 0; i < items.length; ++i) { | |
url = items[i].getAttribute('data-templink'); | |
url += '?download'; | |
url = 'wget ' + url + ' -O ' + items[i].getElementsByClassName('text')[0].textContent; | |
urls.push(url); | |
} | |
console.log(urls.join('\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment