For my own personal purposes, I have about ~300 authors (full name) of various books. I want to partition this list into "fiction authors" and "non-fiction authors". If an author writes both, then the majority gets the vote.
I looked at Amazon Product Search API: I can search by author (in Python), but there is no way to find the book category (fiction vs rest):
>>> node = api.item_search('Books', Author='Richard Dawkins')
>>> for book in node.Items.Item:
... print book.ItemAttributes.Title
What are my options? I prefer to do this in Python.
Well, you can try another service - Google Book Search API. To use Python you can have a look at gdata-python-api. In its protocol, in result feed there is a node
<dc:subject>
- probably that's what you need:Of course, this protocol gives you some overhead information, related to this book (like visible or not on Google Books etc.)