Questions tagged [last.fm]

Last.fm is a music recommendation service.

The Last.fm API allows anyone to build their own programs using Last.fm data, whether they're on the web, the desktop or mobile devices. Find out more about how you can start exploring the social music playground on the link below.

Links

320 questions
5
votes
1 answer

Raise ConnectionError (Connection aborted,BadStatusLine): using python and Last.fm API

I'm using python to call Last.fm API to fetch user information. This error occurs after fetching about 7000 users: Traceback (most recent call last): File "C:/Python27/My Codes & Data/scanuserinfo_100K_3.py", line 48, in
Ruby
  • 284
  • 1
  • 5
  • 18
5
votes
1 answer

TypeError: coercing to Unicode: need string or buffer, User found

i have to crawl last.fm for users (university exercise). I'm new to python and get following error: Traceback (most recent call last): File "crawler.py", line 23, in for f in user_.get_friends(limit='200'): File…
tronic
  • 119
  • 1
  • 2
  • 4
5
votes
1 answer

no applicable method for 'xpathApply' applied to an object of class "NULL"

I have the following code I don't know why I receive this error: rm(list=ls()) require("XML") #
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
4
votes
1 answer

How can I read breaks in downloaded text?

I'm using the Last.fm Java library that's listed in the "Downloads" section on the API. When I call "getWikiText()" and set it to my TextView, all the data is returned; however, the html isn't formatted correctly. Rather than showing separate…
adneal
  • 30,484
  • 10
  • 122
  • 151
4
votes
1 answer

Last.fm API call from Android application

I'm trying to make last.fm API call from android application using this package: http://www.u-mass.de/lastfm From simple java command line program, it works, but not in android application. Using windows and Eclipse Code itself is very easy: Artist…
marko
  • 61
  • 2
  • 9
4
votes
1 answer

Is it possible to get scrobbling from information from last.fm API

I am getting information about the track I am listening to from last.fm.. I cannot however get the information about what I am scrobbling from, like you see on you last.fm page: "scrobbling now from spotify" Does anyone know if this is possible…
user359135
4
votes
2 answers

System.Text.Json - Deserialize object that can be either an empty string or a class

I'm using System.Text.Json to deserialize some json. (More specifically, this call from the Last.fm API in json format) The json that I'm trying to deserialize has a quite unconventional way of handling null values for some objects, for example when…
Thom
  • 663
  • 7
  • 19
4
votes
2 answers

Get the release date of an album last.fm api

I need to get the release date of a song. In last.fm API, like described on the documentation, is enough to make an HTTP request to the server and it will reply with an XML (or JSON) that contain the field "" (like is shown in the Sample Response on…
mferre
  • 182
  • 1
  • 14
4
votes
5 answers

Converting Straight JS to JQuery

Im trying to append some JSON data from the last.fm API, I have been using alert() at several stages to verify the API is being parsed correctly and it is, This has led me to the conclusion that getElementById().appendChild() doesn't work, below is…
Myles Gray
  • 8,711
  • 7
  • 48
  • 70
4
votes
2 answers

Fetching album art, as JPEG, PNG etc

Is there any simple Web API which returns album art as an image, just like the Google Static Map API (Google Static Map API? I have heard about Amazon's and Last.fm's APIs for this, but can't find any code for that (other than in web languages like…
Codevalley
  • 4,593
  • 7
  • 42
  • 56
4
votes
3 answers

LastFM auth.getMobileSession not working

I have been trying to build a LastFM scrobbler in my Android app. For that I need to first get session key of the user, for which I am using the auth.getMobileSession. LastFm getMobileSession LastFM Rest Services But I always get the error: Invalid…
Sucho
  • 321
  • 1
  • 14
4
votes
2 answers

How To Get All Songs of An Artist on Spoitfy?

In their docs for getting top tracks on an artist they mention this: The 10 maximum tracks are the ones displayed by the Spotify app. If you want to fetch more artist’s top tracks, an alternative way is to use Echo Nest song/search to accomplish…
user3241894
  • 73
  • 1
  • 5
4
votes
1 answer

Android - ION caches result

I'm currently writing a small app that shows the current song playing in my local pub by downloading the last.fm-generated XML-file. The problem I have is the following: when syncing with the xml online it doesn't get the new version, but instead…
Dennie
  • 743
  • 2
  • 13
  • 30
4
votes
2 answers

Track.getSimilar: An invalid XML character (Unicode: 0x3) was found in the element…

I use the last.fm API:Api Last.fm I have a list of songs (tracks) with their artists and I want to recover for every song like his song. the method Track.getSimilar(Artist, track, key) works perfectly. BUT when the artist or track is in Arabic, I…
FRIDI Mourad
  • 87
  • 1
  • 6
  • 16
4
votes
2 answers

How to get the attribute of JSON object in javascript containing the '#' in the key

I have the JSON object returned by the api of last.fm as follow: { "artists": { "artist": { "name": "Daft Punk", "playcount": "494599", "listeners": "106101", "mbid":…
zambliner
  • 436
  • 2
  • 6
  • 21
1
2
3
21 22