metalx1000

Userscloud List Downloader - comics

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