#/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