Skip to content

Instantly share code, notes, and snippets.

@Janiczek
Created May 29, 2012 22:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Janiczek/2831191 to your computer and use it in GitHub Desktop.
Save Janiczek/2831191 to your computer and use it in GitHub Desktop.
Sinfest downloader
# NOTE: some of these will be 404s (30th of February, days with no comics, etc.)
# 404s can be removed with `find . -type f -size -1000c -iname "*.gif" -exec rm {} \;`
from urllib import urlretrieve
for y in range(2000, 2013):
for m in range(1, 13):
print "starting", y, m
for d in range(1, 32):
name = "%d-%02d-%02d.gif" % (y, m, d)
url = "http://www.sinfest.net/comikaze/comics/" + name
path = "./" + name
try:
urlretrieve(url, path)
except:
print url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment