Search for Books on Amazon using Boto!

Today I added some minor support for ECS into boto. Specifically, I've implemented the ItemSearch API from the Product Advertising API. Usage is simple:

>>> from boto.ecs import ECSConnection
>>> conn = ECSConnection()
>>> books = conn.item_search("Books", Author="John Resig")
>>> for book in books:
...     print book.Title
...     print book.ASIN


The above example should print out the title and ASIN of all books currently on Amazon authored by John Resig, including Secrets of the JavaScript Ninja


Happy searching!

Comments

Rytis Sileika said…
This is slightly broken now. Apparently Amazon ECS does not accept:

Action=GET&

and so it errors with HTTP 400

I have made a simple patch which I'll be submitting to github shortly
Mike Driscoll said…
This code doesn't work unless I put my Amazon API key and secret in. Then it returns some kind of ItemSet object that isn't iterable. Can you clue me into how to make this work? Thanks!
casinononaams said…
Every well-written custom paper contains essayshark reddit a quality and unique thesis statement. Our writers draw up a thesis statement after research has been made.