Last active
January 6, 2021 13:31
-
-
Save FiXato/108c1c839e923b2b1d9975d2d8c6d742 to your computer and use it in GitHub Desktop.
Shell script to download freely released Studio Ghibli images
This file contains 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
#!/usr/bin/env bash | |
#encoding: utf-8 | |
#Shell script to download freely released Studio Ghibli images (http://www.ghibli.jp/info/013344/) | |
film_names=( "marnie" "kaguyahime" "kazetachinu" "kokurikozaka" "karigurashi" "ponyo" "ged" "chihiro") | |
for film_name in "${film_names[@]}"; do | |
mkdir -p "./${film_name}" && curl "http://www.ghibli.jp/images/${film_name}.jpg" -o "./${film_name}/${film_name}.jpg" && curl "http://www.ghibli.jp/gallery/${film_name}[001-050].jpg" -H "Referer: http://www.ghibli.jp/works/${film_name}/#frame" -o "./${film_name}/${film_name}-#1.jpg" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment