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

Read JSON file to get highest resolution image (Last.FM)

So, I am working on a project that sends an Discord message every time it's a certain date, such as 'Mon 22:00:00'. The message includes my most listened album of that week. I got the code working that whenever I get the URL to get to the JSON,…
0
votes
3 answers

Split URL in Python

So, I have this URL: https://www.last.fm/music/Limp+Bizkit/Significant+Other I want to split it, to only keep the Limp+Bizkit and Significant+Other part of the URL. These are variables, and can be different each time. These are needed to create a…
0
votes
1 answer

Download full data export from LastFm for recommender system

I am looking to build a recommender system and serching for data along with number of listeners and other attributes. I found last.fm provides this information but how do get all the available track data model training? Or should I download the data…
0
votes
1 answer

Last.fm api json not being read with swift decoder

I'm trying to make a simple song search app using the last.fm api and swift ui. When I use the decoder with the itunes api it works fine but when I try using last.fm my view is blank so i'm assuming that maybe the objects i've defined for the json…
CartoonyAli
  • 45
  • 1
  • 6
0
votes
1 answer

Getting data of second .getJSON

I have the below issue, I believe I have coded the site to do two consecutive API calls, but am unable to get any data from the second call into my div. $(document).ready(function() { $(".discogs-loading").show(); …
0
votes
1 answer

Python reserved keyword as argument does not work (although it should?)

This code def get_recent_tracks(username, fromuts): print(fromuts) recent_tracks = lastfm_network.get_user(username).get_recent_tracks(**{'from':fromuts}) for i, track in enumerate(recent_tracks): printable = track_only(track) …
Dierk
  • 3
  • 1
0
votes
1 answer

Last.fm invalid method signature (playlist.addTrack)

I am trying to add an "artist - song" entry to one of my playlists on last.fm from the command line. I applied for an API key and got a session key as described in the last.fm API documentation. I got a playlist id using user.getplaylist ($PLID).…
0
votes
0 answers

What is 'lastfm' protocol URL?

For example, Playlists API: Use the playlist.fetch method call to fetch XSPF playlists. XSPF is a web standard for sharable playlists, and XSPF libraries are available in several languages. playlist.fetch takes a 'lastfm' protocol URL as an…
Viewed
  • 1,159
  • 3
  • 16
  • 43
0
votes
1 answer

Parameters not being passed into URL in Android

Ok, I have looked at multiple examples and my code seems to be correct, but for what ever reason the parameters are not being added to the URL. I'm trying to connect to the Last.Fm API and my code is as follows: searchIT.setOnClickListener(new…
Tom
  • 183
  • 3
  • 14
0
votes
1 answer

Processing dates from LastFM API in Python

I am trying to extract all my scrobbles from the LastFM API ('method': 'user.getrecenttracks'), using Python. I have been able to extract the raw data but am struggling when processing the data in DataFrames. Most fields come back with a lot of…
Real_4W
  • 1
  • 1
0
votes
1 answer

Maintain HTTP Cache using last.fm API

LastFM API used to expose "Cache-Control" header in HTTP answers. Instead here is what I got: curl --head "http://ws.audioscrobbler.com/2.0/?api_key=APIKEY&artist=NOFX&autocorrect=1&format=json&method=artist.getsimilar&results=100" HTTP/1.1 200…
kaliko
  • 101
  • 4
0
votes
1 answer

Last FM API SIG_ABRT error

I'm getting a SIG_ABRT error in the one line within the else of this method in the FMCallback class of the Last FM API. - (void)fire { if(_identifier == nil) { [_target performSelector:_selector withObject:_userInfo]; } else { [_target…
Chris
  • 11,819
  • 19
  • 91
  • 145
0
votes
2 answers

Accessing JSON from last.fm API

I'm very new to JavaScript and have been looking for a solution for a while with no success. I'm trying to use the Last.fm API to retrieve the currently playing track on my account. This is what I have so far:

this is an…

0
votes
2 answers

$watch not reading the object

On my website is a player that shows what song I'm currently listing to. However in order to update te song displayed, I had te refresh the page. As for now, I want the code to check an external json file. It should check the songname and when a…
Niels
  • 33
  • 6
0
votes
2 answers

My conditional class bind is binding the class to everything iterated in my object. What have I done wrong?

I have returned an object from an API call to Last.FM that returns an object of the last 100 songs I listened to. If one is currently playing there is a nowplaying flag on the first item in the object. I'm trying to bind a class to the markup if…