Last.fm Web Services » Discussions

Top Artists tags cloud

 
    • amoebaz said...
    • User
    • 23 Feb 2006, 18:41

    Top Artists tags cloud

    Based on the cache code posted by astoever in this post y added some code to construct the corresponding artists cloud based in their relative frequency.

    The links are directed to the english Wikipedia for retrieving biography and discography details.

    It has the same requirements for server cache file than astoever's. See the original post to solve possible problems.

    The script is here, and you can see an example in my blog's sidebar (in spanish, sorry ;-) ).

    Hope you enjoy it!

    Amoebaz!
  • Thats really sweet.

    I'm trying to limit the artists to 30, it doesnt seem to want to do this.

    • amoebaz said...
    • User
    • 9 Jul 2006, 18:14

    A little hack

    Quoth magicmarc:
    Thats really sweet.

    I'm trying to limit the artists to 30, it doesnt seem to want to do this.


    You can add an artist limit to the code with this little hack:

    while ($all_lines[$i]) {

    might be replaced by

    while ($all_lines[$i] && $i < 30) {

    Hope you find it useful ;-)

    Amoebaz!
Anonymous users may not post messages. Please log in or create an account to post in the forums.