diff --git a/download.sh b/download.sh new file mode 100644 index 0000000..8c51597 --- /dev/null +++ b/download.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +#dowload from https://www.pornpics.com/pornstars/eiby-shine/ +BASE_URL="https://www.pornpics.com/pornstars/eiby-shine/" +pornstars="eiby-shine" + +BASE_URL="https://www.pornpics.com/pornstars/chloe-camilla/" +pornstars="chloe-camilla" + + +#clear files beforehand +echo "" > $pornstars-urls_of_galleries.txt +echo "" > $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 + +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 + echo $f +done + + +for g in $(cat $pornstars-image_to_download.txt ); do + wget $g -P $pornstars + echo $g +done