在python中使用瓶鼻从不同地区的Amazon中提取产品价格

在python中使用瓶鼻从不同地区的Amazon中提取产品价格,python,api,amazon,bottlenose,Python,Api,Amazon,Bottlenose,我正在使用瓶鼻从Amazon提取产品价格,从Amazon.com提取产品价格的工作进展顺利,我尝试将搜索范围扩大到Amazon.co.uk,我在Amazon.co.uk申请了一个associate帐户,并获得了一个新的associate-id amazon_search = bottlenose.Amazon(str(aws_key.aws_access_key), str(aws_key.aws_secret_key),

我正在使用瓶鼻从Amazon提取产品价格,从Amazon.com提取产品价格的工作进展顺利,我尝试将搜索范围扩大到Amazon.co.uk,我在Amazon.co.uk申请了一个associate帐户,并获得了一个新的associate-id

amazon_search = bottlenose.Amazon(str(aws_key.aws_access_key),
                                  str(aws_key.aws_secret_key),
                                  str(aws_key.aws_associate_key),
                                  MaxQPS=0.9)

item_details = BeautifulStoneSoup(amazon_search.ItemLookup(ItemId=item_asin.text,ResponseGroup="OfferSummary")

我使用了上面的代码,为什么即使我更改了associate_键,Amazon.com和Amazon.co.uk的输出仍然相同?

列出Amazon_搜索类中的属性将告诉您原因:

print amazon_search.__dict__

{'MaxQPS': 0.9, 'AWSAccessKeyId': 'xxxxxxxxxx', '_last_query_time': [None], 'AWSSecretAccessKey': 'xxxxxxxxxx', 'Region': 'US', 'Parser': None, 'CacheReader': <function amazon_search_details_cache_read_fx at 0x31841b8>, 'ErrorHandler': None, 'Version': '2011-08-01', 'Timeout': None, 'AssociateTag': 'xxxxxxxxxx-20', 'CacheWriter': <function amazon_search_details_cache_write_fx at 0x31840c8>, 'Operation': None}
将属性区域添加到所需的任何区域都可以解决此问题。刚刚测试,它的工作