Skip to content

Instantly share code, notes, and snippets.

@yonat
Last active April 25, 2021 05:31
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 yonat/b65bb64ef9caee1a8375a9c3ef54ee22 to your computer and use it in GitHub Desktop.
Save yonat/b65bb64ef9caee1a8375a9c3ef54ee22 to your computer and use it in GitHub Desktop.
Download zoom recordings
#!/bin/sh
# courtesy of https://github.com/ytdl-org/youtube-dl/issues/23573#issuecomment-631115716
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