Skip to content

Instantly share code, notes, and snippets.

@pmarques
Created January 20, 2016 13:48
Show Gist options
  • Save pmarques/ef59f5e20e1d61c5e0fd to your computer and use it in GitHub Desktop.
Save pmarques/ef59f5e20e1d61c5e0fd to your computer and use it in GitHub Desktop.
Amazon Cloud Drive multiple files download
/**
* 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