server scripts

This commit is contained in:
Stefen Auris 2022-11-26 17:38:29 -05:00
parent 2303b04e79
commit b5d51fb79c
7 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/bash
N=2
cd $HOME/gallery-dl/twitter
for i in */; do
echo ">> $i"
(gallery-dl --sleep 0-1 --abort 3 "https://twitter.com/$i" || echo "Problem with $i gallery!" >> ~/twit_error.txt) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n
fi
done
echo ">>> Updating Retweets"
gallery-dl --abort 3 -o retweets=true "https://twitter.com/stefenauris"
gallery-dl --abort 3 -o retweets=true "https://twitter.com/DaybreakHero"
#de-dup?
wait