According to last.fm API specs, some services such as album.getinfo do NOT
require authentification (see http://www.lastfm.ru/api/show?service=290 as
an example), but pylast requires it.
Please type example code that produces the issue:
import pylast
api_key = "my api key"
api_secret = "my secret key"
username = "TLemur"
password_hash = pylast.md5("")
network = pylast.get_lastfm_network(api_key = API_KEY, api_secret =
API_SECRET, username = username, password_hash = password_hash)
user = pylast.User(user_name, network)
tracks = user.get_top_tracks(period='overall')
for track in tracks:
print track
What is the expected output? What do you see instead?
The expected output is the list of user's top tracks, instead I see a error:
pylast.WSError: Invalid authentication token. Please check
username/password supplied
What version of pyLast is this?
0.4 rev. 222
Original issue reported on code.google.com by timur.ti...@gmail.com on 8 Mar 2010 at 12:08
Original issue reported on code.google.com by
timur.ti...@gmail.com
on 8 Mar 2010 at 12:08