* It's not a big deal. It is a "small story" only for now. </ font>
Images of scenes from several works are now available for download on the Studio Ghibli site.
From this month, we will start providing scene photos of Studio Ghibli works
I thought I would download it because there are various uses such as backgrounds such as zoom and AI style conversion, but it was troublesome to download each one by hand, so I wrote it in Python.
import urllib
works = ["marnie", #When Marnie Was There
"kaguyahime", #The story of Princess Kaguya
"kazetachinu", #The Wind Rises
"kokurikozaka", #From Coquelicot-zaka
"karigurashi", #Borrower Arrietty
"ponyo", #Ponyo on the cliff
"ged", #Tales from Earthsea
"chihiro"] #Spirited Away
url_base = "http://www.ghibli.jp/gallery/"
local_base = "C:/Users/hogehoge/Desktop/ghibli/"
ext = ".jpg "
for work in works:
for i in range(50):
name = work + str(i+1).zfill(3)
url = url_base + name + ext
local = local_base + name + ext
# print(url)
# print(local)
urllib.request.urlretrieve(url,local)
Yes. It is a power technique. The title of the work should be scraped, but the number was small (8 works), so I made it by hand. When there are more, let's scrape properly. It seems that you should hook it with "class =" panelarea "" and extract it from the href character string.
It says, "Please use it freely within the range of common sense." So let's use it within the range of common sense.
Recommended Posts