LyricFind
This gem allows your application to access LyricFind's API services to search and retrieve song information, snippets and lyrics.
Installation
Add this line to your application's Gemfile:
gem 'LyricFind'
And then execute:
$ bundle
Or install it yourself as:
$ gem install LyricFind
Running tests
Create a file called lyricfind.yml (see the example) and put in your keys there.
The run the tests using
rake
Usage
For usage examples from tests, please see here
Example for getting a song object back with info:
lf = LyricFind::API.new 'search-key', 'display-key'
song = lf.get_song_info 'u2', 'one'
# => song.lyrics
# => song.artist
# => song.song_name
# => song.album
# => song.duration
# => song.snippet
# => song.instrumental
Example for getting just the lyrics:
require 'LyricFind'
lf = LyricFind::API.new 'search-key', 'display-key'
puts lf.get_lyrics_by_song_name 'u2', 'one'
Running from the command line
Contributing
- Fork it (https://github.com/ihassin/lyricfind/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
License
MIT.
Other efforts
Look here if you're looking for an impementation in Go
RubyGems
Check out the gem here