Created
November 27, 2012 01:24
-
-
Save natcl/4151798 to your computer and use it in GitHub Desktop.
file download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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