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
0
votes
1 answer

Spotify vs Last FM, display last played track

I was looking for a way to display my last played Spotify track on my website. I succeeded using the Last.FM API. Spotify doesn't have an open API and the music part of Facebook seems to be locked down too. So I now scrobble everything to last.fm…
Jasper
  • 1,697
  • 2
  • 23
  • 48
0
votes
2 answers

appropriate user-agent header value

I'm using HttpBuilder (a Groovy HTTP library built on top of apache's httpclient) to sent requests to the last.fm API. The docs for this API say you should set the user-agent header to "something appropriate" in order to reduce your chances of…
Dónal
  • 185,044
  • 174
  • 569
  • 824
0
votes
2 answers

Retrieving BIO information in LastFM API and PHP

I'm trying to look up the artist BIO information with the LASTFM api but I'm having trouble. I'm using PHP and a CURL request that's returning the result as XML. If I use the url that gets sent by CURL and just load it normally in the browser it…
James Billings
  • 448
  • 7
  • 16
0
votes
1 answer

Sort a list by an int property in the list differing per entry

I am currently working on a little program for myself, connected to LastFM. Here I can fetch a whole list artists, played in the current week. This is how I first fetch the artists played and store them into a list: WeeklyArtistChart WeeklyArtists =…
Infernus
  • 53
  • 1
  • 2
  • 8
0
votes
2 answers

Accessing functions of another class without referencing in every instance?

In the code below the User class needs to access a function get_user inside an instance of WebService class, as that contains other functions required for authentication with the web server (last.fm). Actual code is here. class WebService: …
anon
0
votes
1 answer

Echo message via PHP if XML element doesn't exist

After some substantial research on this topic, I have unfortunately not found an answer. I would imagine that this is an exceptionally simple question for a lot of people here. I'm connected to Last.fm's XML database through their API (Using PHP).…
0
votes
1 answer

Creating authToken for last.fm api ruby

I am trying to use auth.getMobileSession method to authenticate user to my last.fm application that is built using last.fm REST api. Last.fm says that for mobile applications we need to send AuthToken authToken (Required) : A 32-byte ASCII…
nightf0x
  • 1,969
  • 3
  • 17
  • 24
0
votes
1 answer

Normalize LastFM Tags

I have this set of music data crawled from LastFM, Now, I would like to normalize and classify the songs based on one tag per track. I got this master Genre list, https://spreadsheets.google.com/pub?key=psnjFY3R2itsqjinSs9hkZw But again, how will…
TheVjSen
  • 3
  • 1
0
votes
1 answer

Get large artist image from last.fm xml (api artist.getinfo)

This is the xml response from last fm: Adele 1de93a63-3a9f-443a-ba8a-a43b5fe0121e http://www.last.fm/music/Adele
jonasvdc
  • 33
  • 1
  • 9
-1
votes
1 answer

Handling network errors from an external API across an application

My app depends heavily on an external API (last.fm), for which it uses a python wrapper, pylast. The network is prone to some instability, however, and when network connection fails, all breaks down. Such network configuration goes at…
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
-1
votes
2 answers

I dont get a 32character hexadecimal signature as needed

I have to signature my lastfm api: Sign your calls Construct your api method signatures by first ordering all the parameters sent in your call alphabetically by parameter name and concatenating them into one string using a scheme. So for a call…
-1
votes
1 answer

Can't get url from json using javascript

I'm trying to get the url to my most recently played song's album image using last.fm's spotify scrobble api. I'm able to get the song name and artist, but the text for the link to the song's album image is returning "object%20Object" or "object…
PlGGS
  • 11
  • 4
-1
votes
1 answer

Replace HTTPS to HTTPS of XML

I need to get an image url from a XML file, but my server got some errors because this url uses https. How can I read the https link and relace it to http? Please help me, I don't understand programming... function api_lastfm( $artist, $api_key ) { …
-1
votes
2 answers

Jquery (JSON) and last.fm API?

I'm new in using JSON with Jquery and i ret some documentation and still cant get it to work. I need pase data using JSON from last.fm API and get artist information (summary). Link to API with artist Cher:…
Oli Řeháček
  • 53
  • 1
  • 1
  • 10
-1
votes
1 answer

Lastfm artist searcher in python with django

I have to make a simple artist searcher in python with django with last.fm API. I know that django uses a database, but I don't know how can I reach the last.fm database, where can I set this?
Slenkra
  • 820
  • 1
  • 8
  • 14
1 2 3
21
22