Thanks to visit codestin.com
Credit goes to github.com

Skip to content

alexistoulotte/notu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notu

API to get Last.fm tracks (top, loved, etc.).

Installation

Just add this into your Gemfile:

gem 'notu'

Then, just run bundle install.

Example

user_api = Notu::UserApi.new(username: 'johndoe')

user_api.loved_tracks.each do |track|
  puts track.artist
end

user_api.top_tracks(period: '3month').each do |track|
  puts "#{track.artist}: #{track.plays_count}"
end

user_api.recent_tracks.each do |track|
  puts track.title
end

Executing test suite

This project is fully tested with Rspec 3. Just run bundle exec rake (after a bundle install).

About

API to get Last.fm most played and loved tracks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages