updates to automations
This commit is contained in:
parent
5fb05f7e35
commit
51410ebd80
3 changed files with 11 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue