Created
December 8, 2017 14:08
-
-
Save Dih5/5ec20f8883b6c4a99ed65dc753e9659b to your computer and use it in GitHub Desktop.
Download a book from National Diet Library
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
#!/bin/bash | |
for i in {1..174} # Change number of pages. | |
do | |
# Change URL to that of the book. | |
wget "http://dl.ndl.go.jp/view/jpegOutput?itemId=info%3Andljp%2Fpid%2F971654&contentNo=$i&outputScale=1" -O $i.jpeg | |
# They kindly ask for waiting 30s between requests. Don't be an ass and do so. | |
sleep 30 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment