Skip to content

Instantly share code, notes, and snippets.

@rweir
Forked from Senix/Output
Created June 22, 2011 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rweir/1039550 to your computer and use it in GitHub Desktop.
Save rweir/1039550 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(filename)
open(filename, 'w').write(f.read())
Traceback (most recent call last):
File "/home/look/workspace/slug_lancer/src/down.py", line 11, in <module>
os.system('wget http://www.sluggy.com/images/comics/'+mage+lett+imagetype)
TypeError: cannot concatenate 'str' and 'int' objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment