-
-
Save ValRCS/e1292b42f810330e67d335ace19b67ec to your computer and use it in GitHub Desktop.
Revisions
-
dantler created this gist
Jul 13, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ # Download all of Analog Dialogue # Generates a lot of 404 errors, but ultimately gets the job done quickly # without producing any extra cruft on your HDD. import os volumes = range(1,54) numbers = range(1,4) url_base = "https://www.analog.com/media/en/analog-dialogue/" url_list = [] for v in volumes: for n in numbers: url = "{}volume-{}/number-{}/articles/volume{}-number{}.pdf".format(url_base, v, n, v, n) url_list.append(url) for v in volumes: for n in numbers: url = "{}volume-{}/number-{}/volume{}-number{}.pdf".format(url_base, v, n, v, n) url_list.append(url) for u in url_list: os.system("wget " + u)