Questions tagged [bottlenose]

Bottlenose is a thin Python wrapper over the Amazon Product Advertising API

Features

  • Compatible with Python versions 2.4 and up
  • Support for CA, CN, DE, ES, FR, IN, IT, JP, UK, and US Amazon endpoints
  • No requirements, except simplejson for Python pre-2.6
  • Configurable query parsing
  • Configurable throttling for batches of queries
  • Configurable query caching
  • Configurable error handling and retry

Project

28 questions
1
vote
0 answers

HTTP Error 403 returned on accessing Amazon API via Bottlenose (Python)

Anyway, I'm trying to write a simple request to the Amazon API using the following code: ak = "***" sk = "***" at = "***" import bottlenose amazon = bottlenose.Amazon(ak, sk, at,…
Cookielord
  • 11
  • 1
1
vote
2 answers

Beautiful soup and bottlenose, how to parse correctly

I am currently trying to extract strings from the response of a bottlenose amazon api request. Without wanting to cause Russian hackers to pwn to my webapp, I am trying to use beautiful soup following this small webpage as guide. My current…
Astro David
  • 81
  • 10
1
vote
1 answer

using bottlenose in python to extract product price from Amazon in different locale

I am using bottlenose to extract product prices from Amazon, things are doing OK for extraction from Amazon.com, I tried to expand the search to Amazon.co.uk, I applied an associate account in Amazon.co.uk, and obtained a new associate-id.…
lokheart
  • 23,743
  • 39
  • 98
  • 169
0
votes
1 answer

urllib.error.HTTPError: HTTP Error 400: Bad Request

I'm trying to make some search on Amazon Product Ads and using the botlenose to help me do this. But, I'm just receive the HTTP Error 400. Some other important infos: I'm from Brazil, and my TAG from Amazon too. Is it a problem? I did check my…
Andre
  • 17
  • 7
0
votes
3 answers

How to handle skipped items in a for loop

I have been using the Amazon Product API with bottlenose and when iterating over the XML response I have encountered null type errors. I think I have half managed to handle them however it won't extract the other information if it encounters this…
0
votes
1 answer

How to use bottlenose Python library with MWS

For MWS requests, what credentials should I provide to bottlenose to access the Amazon Product Advertising API? From the documentation, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_ASSOCIATE_TAG appear to be required. I am assuming that…
Wahyu
  • 105
  • 3
  • 14
0
votes
1 answer

Http 403 error bottlenose python (Amazon API)

I am trying to access data using Amazon's API. I created product advertisement and aws account with same email and password, got the aws_secret, aws_key and affiliate_associate_key. Then, I tried the following: import bottlenose aws_key =…
Craig Bing
  • 319
  • 3
  • 14
0
votes
0 answers

in python using amazon bottlenose api, I have NameError

why NameError: name 'amazon' is not defined?? it is no plablem, if it is no in function. but if in amazon_api() function, it is error 'name 'amazon' is not defined'. how can i use amazon_api() function without Error ?? import bottlenose from bs4…
0
votes
1 answer

Caching urls with Bottlenose python Amazon product advertising API

i would like to find a way to use the cache function with bottlenose, i found somewhere that i can do it with this code but unfortunately i don't know what to import to work with the cache : def reader(cache_url): return cache.ram(cache_url,lambda:…
ilmetu
  • 448
  • 11
  • 27
0
votes
1 answer

'HTTP Error 400: Bad Request' with Python Bottlenose

I have the following file (associate.py) import bottlenose from bs4 import BeautifulSoup from urllib2 import HTTPError ;; My real keys are here in reality, I just replaced them ;; with the following because they are private. credentials =…
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
0
votes
1 answer

Error when use bottlenose

I have problems when I use bottlenose. According to its instructions, I need to add a error_handler as per instructions. in the instructions I placed the function: def error_handler(err): ex = err['exception'] if isinstance(ex, HTTPError)…
0
votes
1 answer

Why does my bottlenose ErrorHandler not handle 503's

I am getting 503's. According to bottlenose's instructions, I need to add a error_handler as per instructions. in the instructions I placed the function: def error_handler(err): ex = err['exception'] if isinstance(ex, HTTPError) and ex.code…
arcee123
  • 101
  • 9
  • 41
  • 118
0
votes
1 answer

Error about Amazon Product API with bottlenose

I am using the bottlenose for Amazon Product API. I simply created some codes and met the error below: Code I created: ak = "my access key" sk = "My secret key" import bottlenose amazon = bottlenose.Amazon(ak,…
1
2