Files
Stash/reddit_downloader.sh
T
2025-05-08 22:50:03 +00:00

33 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
apk add curl wget
#dowload from https://www.pornpics.com/pornstars/eiby-shine/
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"
#clear files beforehand
echo "" > $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt
echo "" > $DESTINATION_FOLDER/$pornstars-image_to_download.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 -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 -e use_proxy=yes -e http_proxy=$PROXY_HTTP $g -P $DESTINATION_FOLDER/$pornstars
echo $g
done