Skip to content

Instantly share code, notes, and snippets.

@Senix
Created June 29, 2011 04:03
Show Gist options
  • Select an option

  • Save Senix/1053068 to your computer and use it in GitHub Desktop.

Select an option

Save Senix/1053068 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
#Download all sluggy freelance images
import urllib
while True:
mage = int(raw_input('image to download: '))
mage += 1
lett = 'a'
imagetype = '.gif'
filename = "%s%s.gif" % (mage, lett)
f = urllib.urlopen('http://www.sluggy.com/images/comics/'+filename)
open(filename, 'w').write(f.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment