Mostscrobbled¶ ↑
Extracts the artists from a last.fm user’s music library and turns them into nice ruby objects.
Usage¶ ↑
Before you start you’ll need:
Example:
require 'rubygems' require 'mostscrobbled' # The main method call returns an array of artists ordered by the number of scrobbles artists = Mostscrobbled.find(:username => "foobar", :api_key => "123abc") my_favourite_artist = artists.first # Artists have a number of methods to easily access the attributes returned by the last.fm api # For example... my_favourite_artist.name # => "Bibio" my_favourite_artist.playcount # => "391" my_favourite_artist.url # => "http://www.last.fm/music/Bibio" my_favourite_artist.mbid # => "9f9953f0-68bb-4ce3-aace-2f44c87f0aa3" my_favourite_artist.image_small # => "http://userserve-ak.last.fm/serve/34/39790231.jpg"
See the documentation for the full list of methods
Installation¶ ↑
gem install mostscrobbled