- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
#! /bin/sh
if [ ! -d $4 ]
then
echo Creating $4
mkdir "$4"
fi
export url1="\/$2/src\/\d{1,30}\.[^ ]{1,3}"
export url2="\/$2\/"/"http\:\/\/$1\/$2\/"
#echo $url1 $url2
echo Entering $4
cd "$4" && rm -f $3.html && wget http://$1/$2/res/$3.html -O $3.html && cat $3.html |pcregrep -o -e "$url1" |sed s/$url2/g|uniq >get.txt && wget -nc -i get.txt --referer="http://$1/$2" -U "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)"
rm -f get.txt
echo Done!
guest 07.08.2009 19:22 # 0
Ещё нормально, некаждый такое напишет.