Created
April 14, 2015 23:52
-
-
Save mcky/0d19dff8d5dd309e2ee7 to your computer and use it in GitHub Desktop.
Secret 7"
This file contains hidden or 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 os,urllib2 | |
for i in range(1, 701): | |
imgNum = str(i).zfill(3) | |
out = os.path.join("/Users/r/Desktop/secret7","img-%s.jpg" % imgNum) | |
url = "http://d1li66az0g7v6o.cloudfront.net/img/gallery/%s.jpg" % imgNum | |
page = urllib2.urlopen(url) | |
open(out,"wb").write(page.read()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment