Skip to content

Instantly share code, notes, and snippets.

@ardianta
Created June 3, 2021 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ardianta/b3bb3029a9c4389c2366cc8ac503e23d to your computer and use it in GitHub Desktop.
Save ardianta/b3bb3029a9c4389c2366cc8ac503e23d to your computer and use it in GitHub Desktop.
Zoom video recorded downloader
#!/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