Search this site


Metadata

Articles

Projects

Presentations

Pulling album covers from Amazon

Amazon provides lots of web services. One of these is it's E-Commerce API which allows you to search it's vast product database (among other things).

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.


2 responses to 'Pulling album covers from Amazon'

Showing last 2 comments... (Click here to view all comments)

Ryan wrote at Fri Jan 26 15:34:53 2007...
Pretty neat!

Also, your atom feed comes up blank in Bloglines. Not sure why, it's there. Luckily you are smart and have a RSS feed, :)

-Ryan

DuDeman wrote at Thu Mar 5 09:28:20 2009...
Hey, thanks!
I was able to go through all my albums and download the covers for almost all of them!

BIG time-saver and great example.


Leave a reply

You need javascript enabled to use this form. Anti-spam efforts ongoing. Also, if the comment doesn't show up, it's because the form expired. Go back and copy your comment, reload the form, and resubmit. Apologies if this is a hassle, I'm just playing with antispam methods right now. If this insists on not working, please email me about it.

Name (required)
E-mail (optional, if you want me to be able to email you back)
URL (also optional)
Comment: