Skip to content

Instantly share code, notes, and snippets.

@eordano
Forked from anonymous/suckphotos.py
Created December 14, 2010 03:50
Show Gist options
  • Save eordano/739980 to your computer and use it in GitHub Desktop.
Save eordano/739980 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
from urllib import urlopen
base_url = 'http://silvestre.itba.edu.ar/itbaV/colacion/imgcol/big/'
for i in range(1,571):
filename = "ITBA_COLGDO10_" + str(i).rjust(4,'0') + ".jpg"
url = base_url + filename
resource = urlopen(url)
f = open(filename, 'w')
f.write(resource.read())
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment