Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Grab a random youtube video link from any linux box. Parsable and human readable.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
README
RandomYouTube
by Daniel P. Clark

Require's linux with the 'shuf' executable in path and your words dictionary at /usr/share/dict/words

gem install randomyoutube --no-rdoc --no-ri

Description
* Grab 3 words randomly from the system dictionary and pull a youtube video link with those words.

    require 'randomyoutube'
    
    RandomYouTube::human        # One search. Human readable output on success, or failure.
    RandomYouTube::human_must   # Search until success, human readable output.
    RandomYouTube::pretty       # One search. Array on success, nil on failure.
    RandomYouTube::pretty_must  # Search until success, returns array.
    RandomYouTube::raw          # One search. Array on success, nil on failure.
    RandomYouTube::raw_must     # Search until success, returns array.
Something went wrong with that request. Please try again.