Skip to content

Instantly share code, notes, and snippets.

@tymofij
Created November 17, 2013 14:29
Show Gist options
  • Save tymofij/7514029 to your computer and use it in GitHub Desktop.
Save tymofij/7514029 to your computer and use it in GitHub Desktop.
Archive all available sinfest.net strips. You know, just in case.
#!/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