Created
April 23, 2017 14:58
-
-
Save rosenpin/90f0e9f4dadc617b7ea5d9ee3c8bb3a7 to your computer and use it in GitHub Desktop.
bota.to Downloader - Botato manga/comics downloader
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
echo "$0" | |
for argu in "$@" | |
do | |
VAR=$(ls -dt -- */ | head -n1); VAR=${VAR::-1}; FINAL=`expr $VAR + 1`; | |
mkdir $FINAL | |
cd $FINAL | |
max=9 | |
for i in `seq 1 $max` | |
do | |
wget $argu/img00000$i.jpg | |
done | |
max=20 | |
for i in `seq 10 $max` | |
do | |
wget $argu/img0000$i.jpg | |
done | |
cd .. | |
done |
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
//Run this in the console in your browser while having the manga you would like to download open | |
function readAndNext(){ | |
setTimeout(function(){ | |
console.log(document.getElementById("comic_page").src.substr(0, document.getElementById("comic_page").src.indexOf("/img00"))) | |
document.querySelectorAll('[title="Next Chapter"]')[0].click() | |
readAndNext() | |
},3000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment