server scripts
This commit is contained in:
parent
2303b04e79
commit
b5d51fb79c
7 changed files with 56 additions and 0 deletions
15
scripts/server_bin/update_twitter.sh
Executable file
15
scripts/server_bin/update_twitter.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue