Created
November 17, 2013 14:29
-
-
Save tymofij/7514029 to your computer and use it in GitHub Desktop.
Archive all available sinfest.net strips. You know, just in case.
This file contains hidden or 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 | |
from datetime import date, timedelta | |
import urllib, os | |
day = date(2000,1,17) # the first day | |
while day <= date.today(): | |
name = day.strftime("%Y-%m-%d") + '.gif' | |
if not os.path.isfile(name): | |
f, headers = urllib.urlretrieve("http://www.sinfest.net/comikaze/comics/" + name, name) | |
print f, headers | |
day += timedelta(days=1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment