Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/python
  2. #Download all sluggy freelance images
  3.  
  4. import urllib
  5. while True:
  6.     mage = int(raw_input('image to download: '))
  7.     mage += 1
  8.     lett = 'a'
  9.     imagetype = '.gif'
  10.     filename = "%s%s.gif" % (mage, lett)
  11.     f = urllib.urlopen('http://www.sluggy.com/images/comics/'+filename)
  12.     open(filename, 'w').write(f.read())