Created
July 13, 2020 19:39
-
-
Save dantler/f26d75f1051db13649aaedf73f7d64bc to your computer and use it in GitHub Desktop.
Download Analog Dialogue
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
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment