#/bin/bash
lynx -dump "https://huaban.com/discovery/beauty/" | grep pins | awk '{print $2}' | {
while read list;
do
imgurl=$(curl -s "$list" | grep fw658)
imgurl=${imgurl%%fw658*}fw658
imgurl=${imgurl##*src=\"}
if [ -e ~/Pictures/huaban ];then
cd ~/Pictures/huaban
else
mkdir ~/Pictures/huaban $$cd ~/Pictures/huaban
fi
wget -q "https:$imgurl"
done
}
exit
07-19
03-23