Skip to content

Instantly share code, notes, and snippets.

@alvaromuir
Last active August 29, 2015 14:07
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 alvaromuir/88b7fb4c3974bd2f67e1 to your computer and use it in GitHub Desktop.
Save alvaromuir/88b7fb4c3974bd2f67e1 to your computer and use it in GitHub Desktop.
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