From 3bc98d2b2c20e7d99c25d40c025568806cec1424 Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Thu, 8 May 2025 22:12:42 +0000 Subject: [PATCH] update destination path --- download.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/download.sh b/download.sh index 8c51597..3cc90ea 100644 --- a/download.sh +++ b/download.sh @@ -1,6 +1,7 @@ #!/bin/bash #dowload from https://www.pornpics.com/pornstars/eiby-shine/ +DESTINATION_FOLDER="." BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/" pornstars="eiby-shine" @@ -9,19 +10,19 @@ pornstars="chloe-camilla" #clear files beforehand -echo "" > $pornstars-urls_of_galleries.txt -echo "" > $pornstars-image_to_download.txt +echo "" > $DESTINATION_FOLDER/$pornstars-urls_of_galleries.txt +echo "" > $DESTINATION_FOLDER/$pornstars-image_to_download.txt -mkdir $pornstars -curl -s $BASE_URL | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "https://www.pornpics.com/galleries/" |sort -u >> $pornstars-urls_of_galleries.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 -for f in $(cat $pornstars-urls_of_galleries.txt ); do - curl $f | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "https://cdni.pornpics.com/" >> $pornstars-image_to_download.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 echo $f done -for g in $(cat $pornstars-image_to_download.txt ); do - wget $g -P $pornstars +for g in $(cat $DESTINATION_FOLDER/$pornstars-image_to_download.txt ); do + wget $g -P $DESTINATION_FOLDER/$pornstars echo $g done