Created
June 3, 2021 13:52
-
-
Save ardianta/b3bb3029a9c4389c2366cc8ac503e23d to your computer and use it in GitHub Desktop.
Zoom video recorded downloader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
url="$1" | |
jar=$(mktemp) | |
mp4=$(curl -s -c "$jar" "$url" | grep video/mp4 | grep -o 'https:[^"]*') | |
file=$(echo "$mp4" | grep -o "[^/? ]*\.mp4") | |
echo "Downloading $file" | |
curl -b "$jar" -o "$file" -e "$url" "$mp4" | |
rm "$jar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment