Sha256: 53dbc8b8ab1ad49fe02fd54580238a9d36729c68541cf11e4bd02bd67b8e028c
Contents?: true
Size: 507 Bytes
Versions: 7
Compression:
Stored size: 507 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'rockstar')) # Please enter your API-Keys into lastfm.yml first. # You can find them here : http://www.lastfm.de/api/account Rockstar.lastfm = YAML.load_file(File.join(File.dirname(__FILE__), 'lastfm.yml')) artist = Rockstar::Artist.new('Madonna') puts 'Top Tracks' puts "=" * 10 artist.top_tracks.each { |t| puts "#{t.name}" } puts puts 'Similar Artists' puts "=" * 15 artist.similar.each { |a| puts "(#{a.match}%) #{a.name}" }
Version data entries
7 entries across 7 versions & 1 rubygems