https://github.com/danielpclark/randomyoutube
Grab a random youtube video link from any linux box. Parsable and human readable.
https://github.com/danielpclark/randomyoutube
Last synced: about 2 months ago
JSON representation
Grab a random youtube video link from any linux box. Parsable and human readable.
- Host: GitHub
- URL: https://github.com/danielpclark/randomyoutube
- Owner: danielpclark
- License: mit
- Created: 2012-11-25T00:42:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-12-12T03:37:57.000Z (over 13 years ago)
- Last Synced: 2025-02-23T00:38:44.738Z (over 1 year ago)
- Language: Ruby
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
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.