Skip to content

Instantly share code, notes, and snippets.

@erasmas
Last active December 20, 2015 21:19
Show Gist options
  • Save erasmas/6196488 to your computer and use it in GitHub Desktop.
Save erasmas/6196488 to your computer and use it in GitHub Desktop.
Handy script to download videos from www.infoq.com
#!/bin/bash
get-infoq-video () {
echo 'usage get-infoq-video http://www.infoq.com/presentations/Concurrency-Clojure'
curl -A "Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10')" $1 | grep "<source src=" |sed -E 's/.*<source src="([^"]+)".*/\1/g' |xargs curl -O
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment