urllib.error.HTTPError: HTTP Error 400: Bad Request (bottlenose)
<p>After installing bottlenose and getting my API keys and associate tags I tried following the instructions in this guide: <a href="https://github.com/lionheart/bottlenose" rel="nofollow">https://github.com/lionheart/bottlenose</a></p>

<p>(I have removed my api keys)</p>

<p>This is the error I am getting:</p>

<pre><code>&gt;&gt;&gt; import bottlenose
&gt;&gt;&gt; amazon = bottlenose.Amazon(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ASSOCIATE_TAG)
&gt;&gt;&gt; response = amazon.ItemLookup(ItemId="B007OZNUCE")
Traceback (most recent call last):
File "&lt;pyshell#2&gt;", line 1, in &lt;module&gt;
response = amazon.ItemLookup(ItemId="B007OZNUCE")
File "C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\site-packages\bottlenose\api.py", line 265, in __call__
{'api_url': api_url, 'cache_url': cache_url})
File "C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\site-packages\bottlenose\api.py", line 226, in _call_api
return urllib2.urlopen(api_request, timeout=self.Timeout)
File "C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 162, in urlopen
return opener.open(url, data, timeout)
File"C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 471, in open
response = meth(req, response)
File"C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 581, in http_response
'http', request, response, code, msg, hdrs)
File"C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 509, in error
return self._call_chain(*args)
File"C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 443, in _call_chain
result = func(*args)
File"C:\Users\Windows\AppData\Local\Programs\Python\Python35\lib\urllib\request.py", line 589, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
</code></pre>

<p>You have to provide the value for keys</p>

<ul>
<li><strong>AWS_ACCESS_KEY_ID</strong></li>
<li><strong>AWS_SECRET_ACCESS_KEY</strong></li>
<li><strong>AWS_ASSOCIATE_TAG</strong></li>
</ul>

<p>In order to get the keys you have to register on AWS</p>

python api amazon-web-services