usage: ⎗ ✓ 1chi https://www.chichi-pui.com/users/user_HZf9wu3Wsa/?p=3 script: ⎗ ✓ 1 2 3 4 5 6 7 8 9 10 11 12function chi(){ user=$(echo "$1" | grep -Pio "user_[a-z0-9]+") screen -S wget wget -r -nd --accept-regex 'https://www.chichi-pui.com/(users/'$user'/?p=\d+|posts/([a-z0-9]+-){4}[a-z0-9]+|uploads/post_images/\S+)' "$1" i=0 cat index.html.* | grep -oP "http.+?jpeg" | grep -F "https://chichi-pui.imgix.net/uploads/post_images/" | while read img; do match=$(ls | grep -F $(basename "$img")) if [ ${#match} -eq 0 ]; then let i++ wget -nc $img -O "$(printf "%03d" $i)-$(basename $img)" fi done }
Warning LINK You are about to visit a link which has been flagged with the above content warnings. Do you wish to continue? Continue Cancel