new script and retired old one
This commit is contained in:
parent
731b3fdfad
commit
33b01a7b83
2 changed files with 10 additions and 0 deletions
|
@ -1,24 +0,0 @@
|
|||
#!/bin/bash
|
||||
help()
|
||||
{
|
||||
echo "Download all the past broadcasts from a twitch user"
|
||||
echo "Requires 2 Parameters:"
|
||||
echo " -u the username of the twitch user"
|
||||
echo " -f the encoding format for the videos, which are fed to yt-dlp"
|
||||
}
|
||||
while getopts u:f: flag
|
||||
do
|
||||
case "${flag}" in
|
||||
u) username=${OPTARG};;
|
||||
f) format=${OPTARG};;
|
||||
h) help exit;;
|
||||
esac
|
||||
done
|
||||
if [[ -z "$2" ]]; then
|
||||
echo "please provide both parameters"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd /home/stev/Videos/Twitch/$username || mkdir -v ~/Videos/Twitch/$username && cd ~/Videos/Twitch/$username
|
||||
yt-dlp -q -f $format "https://www.twitch.tv/$username/videos?filter=archives&sort=time"
|
||||
|
10
scripts/server_bin/twitt_follow.sh
Executable file
10
scripts/server_bin/twitt_follow.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
target=/home/stev/Pictures/gallery-dl/twitter/follow.txt
|
||||
#edit follows file in place
|
||||
sed -n -i '/^@/p' $target
|
||||
sed -ie 's/^.//' $target
|
||||
#loop through the list and download
|
||||
for i in `cat $target`; do
|
||||
gallery-dl --sleep 4 --abort 3 "https://twitter.com/$i"
|
||||
done
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue