muh6mm3d / pylast

Automatically exported from code.google.com/p/pylast
Apache License 2.0
0 stars 0 forks source link

No anonymous access to data #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Do not supply anything but an api_key for anonymous access.

Original comment by amr.hassan on 8 Mar 2010 at 12:21