Advertisement
Lucas_3D

Ghibli Download

Mar 27th, 2021
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. import urllib.request
  2. imageStr = "https://www.ghibli.jp/gallery/"
  3. film = ["chihiro", "marnie", "kaguyahime", "kazetachinu", "kokurikozaka", "karigurashi", "ponyo", "ged"]
  4. for n in film:
  5.     for i in range(51):
  6.         pad = str(i)
  7.         imageName = (n + (pad.zfill(3)) + ".jpg")
  8.         imageDownload = (imageStr + imageName)
  9.         try:
  10.             print(imageDownload)
  11.             urllib.request.urlretrieve(imageDownload, imageName)
  12.         except:
  13.             ()
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement