From f0a5fe75b37d1f56efce836edebd8c374fb98deb Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Thu, 8 May 2025 22:50:03 +0000 Subject: [PATCH] Update reddit_downloader.sh --- reddit_downloader.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reddit_downloader.sh b/reddit_downloader.sh index 9628dc3..ebdf9d5 100755 --- a/reddit_downloader.sh +++ b/reddit_downloader.sh @@ -6,6 +6,7 @@ apk add curl wget DESTINATION_FOLDER="/data" BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/" pornstars="eiby-shine" +PROXY_HTTP="http://stashgluetun-svc:8888" #BASE_URL="https://www.pornpics.com/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 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 - 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 + wget -e use_proxy=yes -e http_proxy=$PROXY_HTTP $g -P $DESTINATION_FOLDER/$pornstars echo $g done +