-
-
Save felipe5/b8ae23f7c6eac1b27898e170e95596ae to your computer and use it in GitHub Desktop.
download manga from mangasee
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 | |
N=50 | |
i=1 | |
down_dir="$HOME/wget/Kingdom/" | |
while [ $i -lt $N ]; do | |
echo -==: downloading chapter $i :==- | |
# old locations | |
#echo http://a2.mangasee.co/manga/\?series\=kingdom\&chapter\=$i | |
#echo http://mangaseeonline.net/read-online/Kingdom-chapter-$i.html | |
mkdir -p $down_dir$i | |
wget \ | |
-r \ | |
-np \ | |
--random-wait \ | |
-erobots=off \ | |
-m \ | |
-D 2.bp.blogspot.com \ | |
-H \ | |
-P $down_dir$i \ | |
http://mangaseeonline.net/read-online/Kingdom-chapter-$i.html \ | |
-A jpeg,jpg,png,gif \ | |
-nd \ | |
-o site$i.log | |
sleep 30 | |
let i=i+1 | |
done | |
echo "do this afterward:" | |
cd $down_dir | |
for dir in $(find . -type d); do zip $dir.zip $dir -r; done | |
perl-rename 's/\d+/sprintf("%04d", $&)/e' * | |
perl-rename 's/.zip/.cbz/' *.zip | |
mkdir -p zips | |
mv *.cbz zips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment