Last active
November 16, 2018 07:43
-
-
Save DanBradbury/e22030a74c6fe180119e01ae176db50c to your computer and use it in GitHub Desktop.
Automate Bundle Download
This file contains hidden or 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
import urllib, zipfile, os | |
from tqdm import tqdm | |
links = [ | |
] | |
for link_location in tqdm(links): | |
urllib.urlretrieve(link_location, "temp.zip") | |
zip = zipfile.ZipFile("temp.zip") | |
zip.extractall() | |
os.remove("temp.zip") |
This file contains hidden or 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
var downloads = $('.flexbtn.active.noicon.js-start-download').filter(function(index, element){ | |
return $(element).text().indexOf("Download") != -1; | |
}); | |
for(var i=0;i<downloads.length;i++) { | |
console.log('"'+downloads[i].lastElementChild.href+'",'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment