Last active
June 11, 2019 15:36
-
-
Save jiskanulo/8d8288bdf1a29666759d8ca0db27212e to your computer and use it in GitHub Desktop.
Download comic images from https://shinycolors.idolmaster.jp
This file contains hidden or 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
#!/bin/bash | |
mkdir -p shinycolors.idolmaster.jp | |
for p in $(curl -s https://shinycolors.idolmaster.jp/api/comic.php | jq '.[].comic, .[].thumbnail' -r); do | |
download_url="https://shinycolors.idolmaster.jp${p}" | |
file_name=$(basename ${p} | awk -F '?' '{print $1}') | |
wget -x $download_url -O shinycolors.idolmaster.jp/$file_name | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment