Simple library to search for song lyrics
Installation
Add this line to your application's Gemfile:
gem 'lyrics_finder'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lyrics_finder
Hello World!
Search passing the author and the song title as parameters to LyricsFinder.search
:
LyricsFinder.search 'idina menzel', 'let it go'
Which will return and array with all the verses of the song as strings, or nil
if the song cannot be found.
Example
In your ruby apps:
require 'lyrics_finder'
@song = LyricsFinder.search 'idina menzel', 'let it go'
puts @song
CLI
LyricsFinder is also available as a command-line tool.
$ lyricsfinder search -a 'idina menzel' -t 'let it go'
Contributing
- Fork it ( https://github.com/[my-github-username]/lyrics_finder/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request