updates to automations

This commit is contained in:
Stefen Auris 2023-10-14 17:00:53 -04:00
parent 5fb05f7e35
commit 51410ebd80
3 changed files with 11 additions and 15 deletions

View file

@ -1,16 +1,13 @@
#!/bin/bash
N=1
rm ~/twit_error.txt
cd $HOME/gallery-dl/twitter
echo ">>> Begin Downloads"
echo ">>>> Begin Downloads"
gallery-dl --abort 3 -o retweets=true "https://twitter.com/stefenauris"
gallery-dl --abort 3 -o retweets=true "https://twitter.com/DaybreakHero"
for i in */; do
echo ">> $i"
(gallery-dl --sleep 3 --abort 3 "https://twitter.com/$i" || echo "$i" >> ~/twit_error.txt) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n
fi
date
gallery-dl --sleep 3 --abort 3 "https://twitter.com/$i" || echo "$i" >> ~/twit_error.txt
echo " << waiting"
sleep 60
done
echo ">>> Updating Retweets"
gallery-dl --abort 3 --sleep 2 -o retweets=true "https://twitter.com/stefenauris"
gallery-dl --abort 3 --sleep 2 -o retweets=true "https://twitter.com/DaybreakHero"
wait