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
4
votes
2 answers

How to fix HTTP Error 503: Service Unavailable error

Executing the command: amazon = bottlenose.Amazon(AMAZON_ACCESS_KEY,AMAZON_SECRET_KEY,AMAZON_ASSOC_TAG) response = amazon.ItemLookup(ItemId='B007OZNUCE') I got the error: Traceback (most recent call last): File "exazapi.py", line 37, in
MM1
  • 45
  • 1
  • 4
2
votes
1 answer

How do I restrict an amazon AWS Product Advertising item search to JUST amazon.co.uk (ie NOT amazon.com)

Using "bottlenose" - ( http://pypi.python.org/pypi/bottlenose/0.3.4 ) Here's my code: import bottlenose,json AMAZON_SECRET_KEY="XXX" AMAZON_ACCESS_KEY_ID = "XXX" AMAZON_ASSOC_TAG="XXX" tmd = "B00005UQVU" amazon =…
Richard Green
  • 2,037
  • 2
  • 20
  • 38
2
votes
0 answers

Bottlenose ItemLookup generates HTTP response code 410 Gone Error

I have a Python 3.8 unit test that used to work fine, and now it is failing. I can't see any documentation that says that the method has been deprecated, and so I'm wondering what's going on here. The unit tests do this: Make sure we instantiated…
Jason Coulls
  • 182
  • 1
  • 1
  • 10
2
votes
1 answer

AmazonAPI get next page from bottlenose search

When doing a keyword search, how do I invoke the next page to receive the next 10 results? amazon = bottlenose.Amazon(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ASSOCIATE_TAG,Parser=lambda text: BeautifulSoup(text, 'xml')) response =…
RussZ
  • 21
  • 2
2
votes
1 answer

How to create a remote amazon shopping cart using bottlenose

I'm using bottlenose for a program in Python that involves creating a shopping cart. The README isn't clear as to the parameters for the CartCreate method. After looking through the Amazon documentation, it seems as if my call should look like…
Meepo
  • 368
  • 4
  • 19
2
votes
1 answer

What AWS IAM permissions are needed for using the bottlenose API?

I want to use the bottlenose API for building a price predictor for Amazon products. I understand that it's a wrapper. I have these questions: Is it must to have the AWS Associate Tag to use bottlenose? Or can I query the product prices and such…
RodrikTheReader
  • 757
  • 1
  • 9
  • 22
2
votes
2 answers

urllib.error.HTTPError: HTTP Error 400: Bad Request (bottlenose)

After installing bottlenose and getting my API keys and associate tags I tried following the instructions in this guide: https://github.com/lionheart/bottlenose (I have removed my api keys) This is the error I am getting: >>> import bottlenose >>>…
sidni
  • 31
  • 2
2
votes
0 answers

Q: Amazon API / Bottlenose / MaxQPS

I am using bottlenose to access the Amazon Product API. As the author is recommending I am throttling the requests with MaxQPS=0.9. It seems to have no effect. I still get 503 errors after some requests. When changing to MaxQPS=0.1 (which should…
2
votes
1 answer

Sales rank of a subcategory through amazon product api (preferably in python using bottlenose)

I am trying to retrieve Product subcategories sales rank (If it is applicable) and this is the script that I have written in Python amazon=bottlenose.Amazon('AmazonCredentials',MaxQPS=0.9) response = amazon.ItemLookup(ItemId="B007SNQ4FM",…
Desai
  • 21
  • 4
2
votes
1 answer

Iterating over rows in a column with XLRD

I have been able to get the column to output the values of the column in a separated list. However I need to retain these values and use them one by one to perform an Amazon lookup with them. The amazon lookup is not the problem. Getting XLRD to…
eusid
  • 769
  • 2
  • 6
  • 18
1
vote
0 answers

How to solve error with bottlenose getting an empty object: expected string or bytes-like object

I'm running my code on a server, and the connection to Amazon works correct when I first boot at the server, but after some requests it fails all the time. If I restart the server it starts working again, but then fails on the same previous…
sergio_teula
  • 91
  • 1
  • 8
1
vote
0 answers

bottlenose HTTP Error 403: Forbidden

I'm using the code example from the github page: import bottlenose amazon = bottlenose.Amazon('XXXX','YYYYY','ZZZZZ') response = amazon.ItemLookup(ItemId='0596520999',ResponseGroup='Images',SearchIndex='Books',IdType='ISBN') print(response) And I…
1
vote
1 answer

Bottlenose 400 - How To Parse HTTPError

I'm getting a 400 error when testing the examples provided by Bottleneck. I double checked that I'm using the correct Associate Tag with the right region (do I include the '-20' in the AWS_ASSOCIATE_TAG?), I tried setting my Ubuntu's timezone…
EladA
  • 357
  • 5
  • 10
1
vote
1 answer

Same script on two PCs, only one gets HTTP Error 400

I am using bottlenose to make requests from Amazon and then parsing the response with BeautifulSoup. I have the exact same python script on my Mac and also on a Raspberry-Pi. #!/usr/bin/python import sys import ids import csv import bottlenose as…
1
vote
0 answers

NameError in bottlenose API

I installed bottlenose and tried this sample code: import bottlenose amazon = bottlenose.Amazon(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ASSOCIATE_TAG) response = amazon.ItemLookup(ItemId="0596520999", ResponseGroup="Images", I put in all my…
sidni
  • 31
  • 2
1
2