Display last.fm images on a Drupal site

Although I haven't used it much lately for discovering new music, I used to really like last.fm, and it's still nice to look back at what I've been listening to.

There was a nice artist image generator, but it stopped working, so I thought it couldn't be that hard to knock up something using views.

With Views XML Backend module, you can parse XML and turn it into a view, and there are plenty of different RSS feeds on last.fm.

The only slightly fiddly bit was remembering the right XPath syntax. The view export is below, and there's an example with my data below that.

All tags