Skip to content

Instantly share code, notes, and snippets.

@dantler
Created July 13, 2020 19:39
Show Gist options
  • Save dantler/f26d75f1051db13649aaedf73f7d64bc to your computer and use it in GitHub Desktop.
Save dantler/f26d75f1051db13649aaedf73f7d64bc to your computer and use it in GitHub Desktop.
Download Analog Dialogue
# 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