for i in `seq 1 88 1`; do wget http://manga.bleachexile.com/chobits-chapter-$i.html; done
for i in `seq 1 88 1`; do mkdir $i; cd $i; wget http://`cat ../chobits-chapter-$i.html|grep static|cut -d '/' -f 5-|cut -d '"' -f 1`; cd ..; done
for i in `seq 1 88 1`; do pages=`cat chobits-chapter-$i.html|grep Page\ \#|tail -n 1|cut -d \# -f 2|cut -d \< -f 1`; for j in `seq 2 $pages 1`; do wget http://manga.bleachexile.com/chobits-chapter-$i-page-$j.html; done; done
for i in `seq 1 88 1`; do pages=`cat chobits-chapter-$i.html|grep Page\ \#|tail -n 1|cut -d \# -f 2|cut -d \< -f 1`; cd $i; for j in `seq 2 $pages 1`; do wget --continue http:`cat ../chobits-chapter-$i-page-$j.html|grep static|cut -d : -f 8-|cut -d \" -f 1`; done; cd ..; done
NOTE: seq is self-made (there is no one on the OS X)
INSPIRON:~ acidumirae$ cat /usr/local/bin/seq
#!/bin/sh
#
FROM=$1
TO=$2
DELTA=$3
while [ $FROM -le $TO ]
do
echo $FROM
FROM=`expr $FROM + $DELTA`
done
PS: It could be much less shell code, but I did not want to put any effort - just quick'n'dirty & working.
PPS: It worked for less then an hour and downloaded 239M of html files and 249M image files sorting out each chapter images to a separate directory :)






