Pulling album covers from Amazon
Posted Mon, 22 Jan 2007
In Pimp, the page for any given listening station shows you the current song being played. Along with that, I wanted to provide the album cover for the current track.
You can leverage Amazon's API to search for a given artist and album eventually leading you to the picture of the album cover. To this end, I wrote a little python module that lets you search for an artist and album name combination and will give you a link to the album cover.
So, I wrote albumcover.py as a prototype to turn an artist and album into a url to the album cover image. It works for the 20 or so tests I've put through it.