Skip to content

Instantly share code, notes, and snippets.

@natcl
Created November 27, 2012 01:24
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 natcl/4151798 to your computer and use it in GitHub Desktop.
Save natcl/4151798 to your computer and use it in GitHub Desktop.
file download
import urllib
files = ['000.jpg', '001.jpg', '011.jpg','111.jpg', '010.jpg','110.jpg', '101.jpg', '100.jpg']
for f in files:
url = urllib.urlopen('http://ives.psy.umontreal.ca/lights/{0}'.format(f))
with open(f, "wb") as output:
output.write(url.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment