Skip to content

Instantly share code, notes, and snippets.

@rwos
Last active December 20, 2015 05:29
Show Gist options
  • Save rwos/6078311 to your computer and use it in GitHub Desktop.
Save rwos/6078311 to your computer and use it in GitHub Desktop.
download and watch screencast.com screencasts without quicktime. needs vlc and curl
#!/bin/sh
# usage:
# $ watch-screencast http://www.screencast.com/t/WHATEVER
url="$1"
source="`curl "$url" | \
grep '"http://content.screencast.com[^"]*media' | \
sed -e 's/.*src="//' -e 's/".*//'`"
tmp="`mktemp`"
echo "downloading video..."
curl "$source" > "$tmp"
vlc "$tmp"
rm -f "$tmp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment