My favorites | Sign in
Project Logo
                
Show all Featured wiki pages:
PyScrobble
Feeds:
People details
Project owners:
  andrewjwilkinson

This set of classes provides easy access to Last.fm webserver. With a simple interface and built-in persistant caching it really couldn't be easier to access Last.fm!

Below is a sample session using PyScrobble.

>>> import scrobble
>>> u = scrobble.User('andrew_j_w')
>>> u.friends
[<scrobble.User(u'scaryjeff'), <scrobble.User(u'andru_monkey'), <scrobble.User(u'thewilkybarkid'),...
>>> u.neighbours
[<scrobble.User(u'thewilkybarkid'), <scrobble.User(u'Self_Healer'), <scrobble.User(u'Nicosjo'), <scrobble.User(u'danielelliott'),...
>>> u.recent_tracks
[(<scrobble.Track(<scrobble.Artist(u'The Automatic') - u'By My Side'), datetime.datetime(2007, 2, 7, 22, 35, 34)),...
>>> a = scrobble.Artist('Radiohead')
>>> a.similar
[<scrobble.Artist(u'Coldplay'), <scrobble.Artist(u'Beck'), <scrobble.Artist(u'The Beatles'),...
>>> a.global_tags
[u'alternative', u'rock', u'alternative rock', u'indie', u'electronic', u'britpop',...
>>> a.tags(u) # Get andrew_j_w's tags on Radiohead
[u'rock']








Hosted by Google Code