Update download.sh
This commit is contained in:
+15
-7
@@ -1,28 +1,36 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
apk add curl wget
|
||||||
|
|
||||||
#dowload from https://www.pornpics.com/pornstars/eiby-shine/
|
#dowload from https://www.pornpics.com/pornstars/eiby-shine/
|
||||||
DESTINATION_FOLDER="."
|
DESTINATION_FOLDER="/data"
|
||||||
BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/"
|
PROXY_HTTP="http://gluetun-svc.gluetun.svc:8888"
|
||||||
pornstars="eiby-shine"
|
|
||||||
|
#BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/"
|
||||||
|
#pornstars="eiby-shine"
|
||||||
|
|
||||||
BASE_URL="https://www.pornpics.com/pornstars/chloe-camilla/"
|
BASE_URL="https://www.pornpics.com/pornstars/chloe-camilla/"
|
||||||
pornstars="chloe-camilla"
|
pornstars="chloe-camilla"
|
||||||
|
|
||||||
|
#BASE_URL="https://www.pornpics.com/pornstars/becky-summer"
|
||||||
|
#pornstars="becky-summer"
|
||||||
|
|
||||||
|
|
||||||
#clear files beforehand
|
#clear files beforehand
|
||||||
echo "" > $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt
|
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 $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
|
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
|
echo $g
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user