Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shell script to download freely released Studio Ghibli images
#!/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