Skip to content

Instantly share code, notes, and snippets.

@alvaromuir alvaromuir/getreplay.sh
Last active Aug 29, 2015

Embed
What would you like to do?
Downloads files from
#!/bin/bash
# Script to download videos from UC's replay system
# requires curl
# usage example ./getreplay.sh <some replay url.hmtl> <file_outputname>
# will add ".mp4" to file, warning will overwrite existing.
set -e
link=$1
file=./$2.mp4
base=${link%'.html'}
url=${base}/media/video.mp4
curl -o $file $url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.