[pylast]

127 views
Skip to first unread message

maxschaf

unread,
Mar 23, 2011, 6:20:11 PM3/23/11
to pylast
Hi,

is there a library method to get chart.getTopArtists ? http://xrl.in/80ah

it would be great to get overall top artists, not only user's or tag's
top artists.

thx and great work :)

maxschaf

unread,
Mar 24, 2011, 8:51:17 PM3/24/11
to pylast
On 23 Mrz., 23:20, maxschaf <maxsc...@hotmail.com> wrote:
> is there a library method to get chart.getTopArtists  ?http://xrl.in/80ah

using it that way right now:

#gets name of first four top artists.
params = {"API_KEY": API_KEY, "items":"1", "limit": "4"}
doc = pylast._Request(network,'chart.getTopArtists',
params).execute()

chart_top_artists=[]
for node in doc.getElementsByTagName("artist"):
chart_top_artists.append(node.childNodes[01].firstChild.data)

joH

unread,
May 12, 2011, 7:30:21 AM5/12/11
to pylast
cool. thx for solving your problem!
Reply all
Reply to author
Forward
0 new messages