Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'If you want to avoid webpage scraping:' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
If you want to avoid webpage scraping:
Authored by: toc-rox on Aug 14, '10 03:15:19AM

lfmCMD.pl is a generic last.fm webservices client and allows you to call each last.fm API service (for desktop applications) from a command line (terminal). The http request is logged to "last.fm.Request.txt" and the last.fm response "last.fm.Response.xml". Example for requesting the top tags of an artist (service 288):

Request:
perl lfmCMD.pl method=artist.getTopTags artist="Nelly Furtado"

Response:
<?xml version="1.0" encoding="utf-8"?>
<lfm status="ok">
<toptags artist="Nelly Furtado">
<tag>
<name>pop</name>
<count>100</count>
<url>http://www.last.fm/tag/pop</url>
</tag>
<tag>
<name>female vocalists</name>
<count>63</count>
<url>http://www.last.fm/tag/female%20vocalists</url>
</tag>
...
</toptags>
</lfm>

With a bit of XML parsing ...

Link to utility: http://www.easyclasspage.de/lastfm/seite-11.html



[ Reply to This | # ]
If you want to avoid webpage scraping:
Authored by: toc-rox on Aug 14, '10 05:02:18AM

Perhaps interesting: last.fm service 289 gets the top tags for a track.

Example:
perl lfmCMD.pl method=track.getTopTags artist="Nelly Furtado" track="Maneater"



[ Reply to This | # ]