neighbours.py

neighbours.py is a script which will show a league table of artists from last.fm

Usage:

python neighbours.py jalanb
This will show all the topartists of jalanb and his neighbours

python neighbours.py jalanb fred
This will show all the topartists of jalanb and fred

Artists are shown in a league table, with the users' most poplular artist in first position, their 2nd most-listened-to artist in 2nd place, and so on. An artist's "popularity" is determined by counting how many of the users have the artist in their topartists file. You can also use the "-p" flag to use how often the artist is played instead of the simple count, e.g.

python neighbours.py -p jalanb

You can download the script from here

The script was created and tested with Python 2.4 on Linux, but (AFAIK) should run with Python >= 2.2