Grake – a tool for scanning web pages for Youtube Video URL

grake is a command-line tool for scanning web pages for embedded Youtube video link. As a scanning tool, grake is meant to complement other tool that would accept Youtube URL as its parameter, notably cclive.

Usage Example:

[bash]
# general command line example
grake [YOUTUBE URL]
[/bash]

[bash]
# typical / normal use
grake http://youtube.com/
[/bash]

[bash]
#output as json (for programmatic consumption)
grake –json http://youtube.com/
[/bash]

[bash]
#tell cclive to download youtube urls from grake output

grake http://youtube.com/ | cclive
[/bash]

This of course require the latest release of cclive in order for the download example to work.