API to get Last.fm most played and loved tracks
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
MIT-LICENSE
README.mdown
Rakefile
VERSION
notu.gemspec

README.mdown

Notu

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

Installation

Just add this into your Gemfile:

gem 'notu'

Then, just run bundle install.

Example

library = Notu::Library.new(username: 'johndoe')

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

library.most_played_tracks(period: 'last_month').each do |track|
  puts "#{track.artist}: #{track.plays_count}"
end

library.played_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).