Closed pkedrosky closed 8 years ago
Strange. The function you're calling is a thin wrapper around Amazon Simple API to provide the same functionality. It literally redirects to that API.
Are you sure you're registered for ad revenue and have an associate tag?
Can you try using the Amazon Simple API directly and seeing if you get similar results? https://pypi.python.org/pypi/python-amazon-simple-product-api/
Yes, that gives the same error. And yes, I do have a valid Amazon associate tag. Perhaps it's not properly connected to the AWS account somehow?
There might be a delay between creation and activation if it's new, not sure. I wouldn't count on that being the issue, the error is 400, not 403 which I would expect in that case.
Perhaps try (if you haven't) both git HEAD and the latest Amazon Simple API from PyPi. Also check your version of bottlenose, there may be an update if you're using an old version. Failing that, file a bug on Amazon Simple API. I'm at a loss as to what is wrong.
With Scratchpad (http://webservices.amazon.fr/scratchpad/index.html), you receive the same error ?
For anyone finding this thread through Google: I had the same issue, and it was resolved by the extra step of authorising my account for API access (as suggested here). This is separate from joining the Associates Program.
To do so, you can go to https://affiliate-program.amazon.com/gp/advertising/api/registration/pipeline.html
Hope this helps someone!
How did you 'authorize' the account? I have joined the associate program and am on the step 3: Success. I have joined the program, but do not find any link to 'authorize' my account for API access? I am getting the same 400 error.
Appreciate your comments and help!
Best, Chai
I think you should take these questions to StackOverflow.
When I try to run the scraper using a simple test and request as follows, it consistently fails as show with this error traceback. Any idea where I am going awry? Apologies for my idiocy here, but not obvious to me why urllib is throwing a 400 error.
And here is the result: