Fooling Around with Amazon Images

I’m a fussy person. I wanted to show books in my library on my blog sidebar—but not just in any old way.

Update: Fixed the code samples and script.


  • One or more things in the sidebar that shows books in my library.

  • I want to show books I’ve read, books I’m currently reading (and, in some cases, re-reading), and books I will read.

  • Preferably separated from each other.

  • I want to be able to adjust the number of books shown in each category.

  • I want someone else to worry about all the little book images and not have to store/resize them myself.

  • I want flexibility in linking; sometimes I want to link to reviews I’ve written, for instance, and sometimes direct to Amazon, Audible, Webscriptions, etc.

  • If I’m linking to Amazon, I want my Amazon Associates code attached. Optionally, if any other stores have associates programs, I want to use those tags too.

Widgets from Book Social Networks

None of the widgets from Shelfari, GoodReads, or LibraryThing could satisfy these requirements.

The widgets at GoodReads came closest, but in the end they weren’t flexible enough.

Now we descend into high geekery, including ruby code, so the rest of this goes under the cut.

Continue reading