Update download.sh

This commit is contained in:
2025-05-15 19:06:55 +00:00
parent f0a5fe75b3
commit a61a753e0d
+15 -7
View File
@@ -1,28 +1,36 @@
#!/bin/bash
apk add curl wget
#dowload from https://www.pornpics.com/pornstars/eiby-shine/
DESTINATION_FOLDER="."
BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/"
pornstars="eiby-shine"
DESTINATION_FOLDER="/data"
PROXY_HTTP="http://gluetun-svc.gluetun.svc:8888"
#BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/"
#pornstars="eiby-shine"
BASE_URL="https://www.pornpics.com/pornstars/chloe-camilla/"
pornstars="chloe-camilla"
#BASE_URL="https://www.pornpics.com/pornstars/becky-summer"
#pornstars="becky-summer"
#clear files beforehand
echo "" > $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt
echo "" > $DESTINATION_FOLDER/$pornstars-image_to_download.txt
mkdir $DESTINATION_FOLDER/$pornstars
curl -s $BASE_URL | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "https://www.pornpics.com/galleries/" |sort -u >> $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt
mkdir -p $DESTINATION_FOLDER/$pornstars
curl -x $PROXY_HTTP -s $BASE_URL | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "https://www.pornpics.com/galleries/" |sort -u >> $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt
for f in $(cat $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt ); do
curl $f | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "https://cdni.pornpics.com/" >> $DESTINATION_FOLDER/$pornstars-image_to_download.txt
curl -x $PROXY_HTTP $f | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "https://cdni.pornpics.com/" >> $DESTINATION_FOLDER/$pornstars-image_to_download.txt
echo $f
done
for g in $(cat $DESTINATION_FOLDER/$pornstars-image_to_download.txt ); do
wget $g -P $DESTINATION_FOLDER/$pornstars
curl -x $PROXY_HTTP -O --output-dir $DESTINATION_FOLDER/$pornstars $g
# wget -e use_proxy=yes -e http_proxy=$PROXY_HTTP $g -P $DESTINATION_FOLDER/$pornstars
echo $g
done