Created
January 9, 2013 09:27
-
-
Save v2e4lisp/4491835 to your computer and use it in GitHub Desktop.
grab images
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 urllib | |
def get_image(url, path): | |
urllib.urlretrieve(url, path) | |
url_base = "http://www.gojapan.jp/toku3/aaimage/sub/" | |
file_base = "title0" | |
for i in range(1, 50): | |
file = file_base + ("%02d" % i) | |
url = url_base + file | |
get_image(url, file+".jpg") | |
print "done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment