Update reddit_downloader.sh

This commit is contained in:
2025-05-08 22:50:03 +00:00
parent 31635d1f01
commit f0a5fe75b3
+5 -3
View File
@@ -6,6 +6,7 @@ apk add curl wget
DESTINATION_FOLDER="/data" DESTINATION_FOLDER="/data"
BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/" BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/"
pornstars="eiby-shine" pornstars="eiby-shine"
PROXY_HTTP="http://stashgluetun-svc:8888"
#BASE_URL="https://www.pornpics.com/pornstars/chloe-camilla/" #BASE_URL="https://www.pornpics.com/pornstars/chloe-camilla/"
#pornstars="chloe-camilla" #pornstars="chloe-camilla"
@@ -16,15 +17,16 @@ echo "" > $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt
echo "" > $DESTINATION_FOLDER/$pornstars-image_to_download.txt echo "" > $DESTINATION_FOLDER/$pornstars-image_to_download.txt
mkdir -p $DESTINATION_FOLDER/$pornstars mkdir -p $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 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 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 echo $f
done done
for g in $(cat $DESTINATION_FOLDER/$pornstars-image_to_download.txt ); do for g in $(cat $DESTINATION_FOLDER/$pornstars-image_to_download.txt ); do
wget $g -P $DESTINATION_FOLDER/$pornstars wget -e use_proxy=yes -e http_proxy=$PROXY_HTTP $g -P $DESTINATION_FOLDER/$pornstars
echo $g echo $g
done done