notes/Userscloud List Downloader comics-z42ih6YV.sh
#!/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

syntax highlighted by Code2HTML, v. 0.9.1