Search Nathan's Blog
Web Nathan's Blog
     Go back to Home
< Home

Posted: Monday, October 31, 2005

Audioscrobbler - Last Played Song Scripts


For ages now I have wanted to implement my audioscrobbler last played song list into my website but didn't know how. I looked into it today and below are the best methods I found for displaying your audioscrobbler last played tracks on a website. The main source for info on how to do this can be found at: http://www.audioscrobbler.net/wiki/
Most methods are done with a php script and an include which means that you need to have a php enabled server to display your tracks, other ways take your last played songs RSS feed and display it, or theres this really simple code (Method 1) which will display your last played song, but looks kinda lame.

Method 1.
ScrobblerSig: http://www.denness.net/ss.htm



How to:
Place this code into your website/blog (replace n8kowald with your audioscrobbler username:
<img src="http://www.denness.net/scrobblersig.php?username=n8kowald">

Pro's:
  • easy to use
  • No PHP scripts needed
  • Can use as forum signature (alt code)

  • Cons:
  • looks kinda lame
  • This version displays only 1 last played song
  • limited customisation besides colours



  • Method 2.
    RecentTracksOnYourBlog: http://www.audioscrobbler.net/wiki/RecentTracksOnYourBlog



    How to:
    Follow the instructions listed on this website.
    You will have to sign up to Feed Digest (FREE), which will display your feed as a html file that you can use and format to display your recently played songs.

    Pros:
  • Simple to set up
  • Can define how many songs you want to display (Max of 10)
  • The songs link to the audioscrobbler page info about the song (very kool)
  • Can format the look, render as a list etc

  • Cons:
  • Have to sign up with FeedDigest (not a big deal, took me 20 seconds)
  • Because it works by displaying an RSS feed its not a real time list and subject to caching :(



  • Method 3.
    TextyScrobb: http://samuellame.com/textyscrobb/

    Bloodhound Gang - I`m The Least You Could Do

    How to: Download the php script and readme file from the above link and follow the directions. TextyScrobb uses a php script and an include to display your most recently played song as text. Simple to set up and include however requires you have a php enabled server to place the php script onto.

    Pros:
  • Simple to set up
  • minamalistic

  • Cons:
  • Boring
  • need php enabled server
  • Displays as text (no links to audioscrobbler page
  • limited to last song (no list)



  • Method 4.
    Last.fm Info with PHP
    http://www.canspice.org/index.php/lastfm-recently-played-php-code/

    How to:
    Download the php script and upload it onto your php server, now add an include for the script.

    add the following line to the file that you want your songs displayed in:
    <?php include(’lastfm_info.php’); ?>

    Then, in that same file, put the following line where you want your songs displayed:
    <?php display_lastfm_info( username, number_of_items, list, prefix, suffix, stats ); ?>

    Change the variables to suit your preferences. Pretty similar to the above method but allows greater customisation and displays multiple songs.

    Pros:
  • Great customisation
  • Multiple song list (editable)
  • Relatively easy to implement

  • Cons:
  • Basic knowledge of php/variables beneficial
  • Needs a php enabled server

  • 1 Comments:

    At Mon Oct 31, 04:07:00 PM, Anonymous Anonymous said...

    Commence comments:
    Come hence, calm Ents.

     

    Post a Comment

    << Home