Skip to content

Instantly share code, notes, and snippets.

@rosenpin
Created April 23, 2017 14:58
Show Gist options
  • Save rosenpin/90f0e9f4dadc617b7ea5d9ee3c8bb3a7 to your computer and use it in GitHub Desktop.
Save rosenpin/90f0e9f4dadc617b7ea5d9ee3c8bb3a7 to your computer and use it in GitHub Desktop.
bota.to Downloader - Botato manga/comics downloader
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
//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