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
1
vote
1 answer

Parsing Last.fm feed onto website using PHP

I'm trying to parse the Last.fm feed of my last 10 tracks played onto my website. This is what I have so far, load('http://ws.audioscrobbler.com/1.0/user/nathanjmassey/recenttracks.xml'); $arrFeeds…
1
vote
2 answers

PHP extra character in json_decode

the last.fm API is returning a JSON string which I convert to an array using json_decode($response, ($returnType == 'array')); When the response is dumped it gives me the following json…
kendepelchin
  • 2,680
  • 2
  • 21
  • 25
1
vote
1 answer

How to access object methods using dataTable in JSF?

I'm working with LastFM api, let's say I have a class called Artist which I call in this dataTable: Artist : #{artist.name} Artit have a field…
Valter Silva
  • 16,446
  • 52
  • 137
  • 218
1
vote
2 answers

Using Cursor with AsyncTask

I'm trying to download images for each artist that has music on my phone, then show these images in a GridView. I'm using the lastfm-java library that Last.fm recommends using. The method you call to fetch an artists image is getImageURL(ImageSize…
adneal
  • 30,484
  • 10
  • 122
  • 151
0
votes
3 answers

Filtering specific data from XML using PHP (Last.fm) UPDATE

Update: Thanks Rambo for the great answer. The only issue that I have now is that it only displays artist information so long as the artists next gig is in the UK. For example, if they're playing in France and THEN the UK - it won't display anything…
0
votes
2 answers

lastfm JSON object returning "undefined"

i just started with lastfm and json. i can get the information i want to return object values in the console, but i can't figure out why i keep getting a value of "undefined". here's all my code. thanks!
heyjohnmurray
  • 205
  • 3
  • 14
0
votes
1 answer

Last.fm API: Events venues with empty city

Hi – Please check out this event pulled with the event.getInfo method: http://ws.audioscrobbler.com/2.0/?method=event.getinfo&event=2054422&api_key=b25b959554ed76058ac220b7b2e0a026 Notice the venue info: 8887551 Berlin…
luchomolina
  • 1,202
  • 2
  • 13
  • 24
0
votes
1 answer

PHP XML XPath - Stop duplicate nodes

Im trying to parse an XML document using the XPath element in simple XML. However this script below (When searching for the entry "U2" in the last.fm API) returns: Passengers Passengers Bono Passengers Bono U2 and Green Day Passengers Bono U2…
MattHeywood
  • 181
  • 1
  • 4
  • 18
0
votes
2 answers

Display Artist Info from Last.FM API

Having recently had some problems with my code which calls for artist data fed from Last.FM API, I'm looking for a different solution but am struggling to find a nice easy way to handle the problem. Currently I have:
0
votes
2 answers

playing LastFM Playlist with JavaScript music player

I want to play a playlist from LastFM.com and I know Soundmanager2 and some other scripts for playing sound and music. So I need an out-of-the-box working solution, a jQuery / JavaScript Last FM Playlist Player Are there some ? Currently the plugin…
user753676
0
votes
1 answer

Node.js proxy for ws.audioscrobbler.com responds with 301 to www.last.fm

I’m trying to use Node.js to set up a proxy to Last.fm’s webservices. The problem is that every request to ws.audioscrobbler.com gets rewritten to www.last.fm. So for example $ curl http://localhost:8000/_api/test123 sends a 301 Moved Permanently to…
por
  • 23
  • 4
0
votes
4 answers

How do I scrobble to Last.fm's API in Python without getting Invalid method signature supplied?

I have exchanged a token for a session key that looks like this "UserName 94ag345Sd3452C2ffa3aT 0" I have the following code: session_key = 'UserName 94ag345Sd3452C2ffa3aT 0' method = "track.scrobble" artist = "Muse" track = "Time Is Running…
KinsDotNet
  • 1,500
  • 5
  • 25
  • 53
0
votes
1 answer

XML parsing in java with xpath

I am trying to print out some data so my code is private static final DocumentBuilderFactory DOCUMENT_BUILDER_FACTORY = DocumentBuilderFactory.newInstance(); private static final XPathFactory XPATH_FACTORY = XPathFactory.newInstance(); …
Peril
  • 1,569
  • 6
  • 25
  • 42
0
votes
0 answers

Discord.py lastfm bot command issue

I'm making a lastfm bot in discord.py and it says for line 27 "Undetermined string lateral". Idk how to fix it Issue is: track_list += f"{track['name']} by {track['artist']['name']}\n" # Get the top tracks of the user with the…
Gypsy
  • 11
  • 1
0
votes
2 answers

Request authorization called by POST method to Last.fm API using swift

I'm trying to follow Last.fm's tutorial to consume their API in an iOS app (using Swift), but I don't know what's wrong with my code. They ask to do something called Last.fm method signature which I'm not understanding how to insert into my program.…