Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- url="$1"
- agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0"
- wget "$url" -O-|grep "_blank"|cut -d\" -f4,7|cut -d\< -f1|sed 's/">/|/g'|while read file
- do
- link="$(echo $file|cut -d\| -f1)"
- title="$(wget --user-agent="$agent" "$link" -O-|grep 'banner_'|cut -d\= -f3|cut -d\" -f1)"
- parm="$(wget "$link" -O-|grep -i -A 3 "^<form"|tail -n3|awk -F '"' '{print $4 "=" $6}'|tr '\n' '&')"
- echo "==================Downloading $link - $title=================="
- wget -c --user-agent="$agent" "$link" --post-data="$parm" -O "$title"
- done
- comic2html
Add Comment
Please, Sign In to add comment