I am new to amzon api and I am trying to print the attributes of items returned from the below code. .
items = api.item_search('Books', Publisher="O'Reilly")
for book in items:
print book.ItemAttributes.Author, book.ItemAttributes.Title
This codes prints Author and Title of the books returned. But how can I get more details like the price of the book.
Are you trying to learn the api? Just do help(book.ItemAttributes). This will give you all the available methods.
Two things:
item_search
(see wrapper docs for details). import lxml.etree; lxml.etree.tostring(book, pretty_print=True)
import lxml.etree; lxml.etree.tostring(book, pretty_print=True)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.