Last active
December 21, 2015 00:58
-
-
Save rubinsztajn/6223857 to your computer and use it in GitHub Desktop.
Simple script to download MARCXML and PDFs from the internet archive
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
#!/usr/bin/env python | |
import os, sys | |
ids = open(sys.argv[1]) | |
for id in ids: | |
id = id.strip() | |
pdf_cmd = "wget http://archive.org/download/%s/%s.pdf" % (id, id) | |
marc_cmd = "wget http://archive.org/download/%s/%s_archive_marc.xml" % (id, id) | |
os.system(pdf_cmd) | |
os.system(marc_cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment