check if list is valid before proceeding
This commit is contained in:
parent
3b1e1f58ca
commit
8e42abcad4
2 changed files with 7 additions and 3 deletions
|
@ -4,8 +4,12 @@ target=/home/stev/Pictures/gallery-dl/bluesky/follow2.txt
|
||||||
iconv -c -f utf-8 -t ascii /home/stev/Pictures/gallery-dl/bluesky/follow.txt > $target
|
iconv -c -f utf-8 -t ascii /home/stev/Pictures/gallery-dl/bluesky/follow.txt > $target
|
||||||
sed -n -i '/^@/p' $target
|
sed -n -i '/^@/p' $target
|
||||||
sed -ie 's/^.//' $target
|
sed -ie 's/^.//' $target
|
||||||
|
#check if list is valid
|
||||||
|
cat $target
|
||||||
|
read -e -p "is this list valid? " valid
|
||||||
|
if [[ "$valid" == [Yy]* ]]
|
||||||
#loop through the list and download
|
#loop through the list and download
|
||||||
for i in `cat $target`; do
|
for i in `cat $target`; do
|
||||||
gallery-dl --sleep 1-3 "https://bsky.app/profile/$i"
|
gallery-dl --sleep 1-3 "https://bsky.app/profile/$i"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
# docker pull ghcr.io/datawhores/of-scraper:latest
|
# docker pull ghcr.io/datawhores/of-scraper:latest
|
||||||
test -t 1 && USE_TTY="-it"
|
test -t 1 && USE_TTY="-it"
|
||||||
docker run ${USE_TTY} --rm --name=ofscraper -u 1000:1000 -v /home/stev/.config/ofscraper:/home/ofscraper/.config/ -v /home/stev/gallery-dl/onlyfans:/home/ofscraper/data \
|
docker run ${USE_TTY} --rm --name=ofscraper -u 1000:1000 -v /home/stev/.config/ofscraper:/home/ofscraper/.config/ -v /home/stev/gallery-dl/onlyfans:/home/ofscraper/data \
|
||||||
ghcr.io/datawhores/of-scraper:main \
|
ghcr.io/datawhores/of-scraper:latest \
|
||||||
ofscraper --output normal --action download --sort subscribed --post timeline,profile,messages,purchased -ts --username ALL
|
ofscraper --output normal --action download --sort subscribed --post timeline,streams,messages,purchased -ts --username ALL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue