Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- if [ ! -d "$1/$2" ]
- then
- echo Creating "$1/$2"
- mkdir "$1"
- cd $1
- mkdir "$2"
- cd
- fi
- cd "$1/$2"
- echo "$1/$2"
- pwd
- manga=$1
- chapter=$2
- wget http://manga24.ru/$manga/$chapter/ -O temp.html
- dir=`cat temp.html |pcregrep -o -e 'dir\:.+'|pcregrep -o -e 'http.*[^\(",)]'`
- echo $dir
- expr=s/\"/$dir/g
- echo $expr
- cat temp.html | pcregrep -o -e 'images\:.+'|pcregrep -o -e '\"[^(\",)]+'| sed ${expr} > images.txt
- #wget -nc -i images.txt
- #rm -f images.txt
Advertisement
Add Comment
Please, Sign In to add comment