Download script for 73 Magazine.

I found a script for downloading the 73 magazine PDFs from on Marxy’s blog. However, this didn’t work with the Python 3.3 interpreter that I have. Luckily, it wasn’t difficult to update it to the new version.

Here it is:

# Download script for 73 Magazine.
# Adapted from
# for use with Python 3.3 by PA1DSP

import os
import urllib.request

MONTHS = ('January', 'February', 'March', 'April', 'May', 'June',
          'July', 'August', 'September', 'October', 'November', 'December')

END_YEAR = 2003
OUTPUT_DIR = "73 Magazine"
MISSING = ('73 Magazine/73-Magazine-1975_11.pdf',
'73 Magazine/73-Magazine-1975_12.pdf',)

def main():
    if not os.path.exists(OUTPUT_DIR):

    for year in range(START_YEAR, END_YEAR + 1):
        for month in range(1,13):
            monthName = MONTHS[month - 1]
            fileName = "%s/73-Magazine-%d_%d.pdf" % (OUTPUT_DIR, year, month)
            if not os.path.exists(fileName) and fileName not in MISSING:
                editionString = "%d-%02d/%02d_%s_%d" % (year, month, month, monthName, year)
                url = "" % editionString
                print("Downloading: %s..." % url)
                print("To: %s" % fileName)
                pdfData = urllib.request.urlopen(url).read()
                outFile = open(fileName, "wb")
                print("Skipping: %s" % fileName)

if __name__ == "__main__":

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s