Project

notu

0.0
Low commit activity in last 3 years
No release in over a year
API to get Last.fm tracks (top, loved, etc.)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.2.0, < 12.0.0
>= 10.3.0, < 14.0.0
>= 3.1.0, < 4.0.0
>= 3.0.0, < 4.0.0
>= 4.0.0, < 7.0.0
>= 1.25.0, < 2.0.0
>= 0.6.0, < 1.0.0
>= 2.8.0, < 3.0.0

Runtime

>= 7.0.0, < 8.0.0
 Project Readme

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