Get song lyrics and metadata based on query
Add this line to your application's Gemfile:
gem 'lyricgenius'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lyricgenius
Search for song information:
agent = LyricGenius::Song.new
song_information = agent.search "real slim shady"
Output:
{
:title => "The Real Slim Shady Lyrics",
:artist => "Eminem",
:lyrics => "\n \n [Eminem]May I have your attention please\nMay I have your attention please
Will the real Slim Shady please stand ...(REMAINDER OF LYRICS)...\nFuck it, let’s all stand up"
}
- Fork it
- 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 new Pull Request