Last active
December 20, 2015 05:29
-
-
Save rwos/6078311 to your computer and use it in GitHub Desktop.
download and watch screencast.com screencasts without quicktime. needs vlc and curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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