Skip to content

Instantly share code, notes, and snippets.

@v2e4lisp
Created January 9, 2013 09:27
Show Gist options
  • Save v2e4lisp/4491835 to your computer and use it in GitHub Desktop.
Save v2e4lisp/4491835 to your computer and use it in GitHub Desktop.
grab images
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