Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2010 03:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/739975 to your computer and use it in GitHub Desktop.
Save anonymous/739975 to your computer and use it in GitHub Desktop.
Script to suck graduation photos from IOL, that sucks.
#!/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