Hey there SMOF,
After some fiddling the Python code in asin_search.py is now fixed and runs perfectly producing real ASINs when it finds them on Amazon. This produces correct ASINs as expected.
Here's the updated asin_search.py code:
Code:
import sys
from amazonproduct import API
AWS_KEY = '........................................'
SECRET_KEY = '.....................................................'
ASSOCIATE_TAG='..........................'
api = API(AWS_KEY, SECRET_KEY, "us", ASSOCIATE_TAG)
for book in api.item_search('KindleStore', Title=sys.argv[1], Author=sys.argv[2]):
for book in book.Items.Item:
print '%s' % (book.ASIN)
Thanks to m0ngr31 & Sebastian for getting me headed in the right direction.
Rob
Quote:
Originally Posted by SetMeOnFire
I apologize for coming late to the discussion, but I have a problem that I can't seem to sort out on my own.
I'm fairly sure I've followed all the instructions correctly and I've removed everything and started over from the beginning two times, but I get the same error each time.
The batch file seems to apply fake ASINs to all my books just fine, and I'll be content with that if I have to, but I'd like the real ones.
The error I get is "ImportError: No module named amazonproduct"
I've installed "python-amazon-product-api" using two of the methods on it's homepage. The "setup.py install" from a command prompt, and the "easy_install python-amazon-product-api" using setuptools from a command prompt.
Any help would be appreciated, and thank you in advance for the work you've already done, m0ngr31.
|