lionheart / bottlenose

A Python wrapper for the Amazon Product Advertising API.
Apache License 2.0
577 stars 112 forks source link

Not able to fetch the price #23

Closed avinassh closed 10 years ago

avinassh commented 11 years ago

Not sure this is the right place to post, but I am not able to fetch the price of an item. I am using Variations, OfferSummary, Offers as response groups. Following is the code :

import bottlenose
amazon = bottlenose.Amazon('ACCESS_KEY', 'SECRET_KEY', 'ASSOCIATE_TAG')
response = amazon.ItemLookup(ItemId="B00CP8V1Y4", ResponseGroup="Variations,OfferSummary,Offers")
print response

and following is the response I am getting :

<ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<OperationRequest>
<HTTPHeaders>
<Header Name="UserAgent" Value="Python-urllib/2.7"/>
</HTTPHeaders>
<RequestId>5d3d496c-ca40-4687-8f50-7a816b0afd9e</RequestId>
<Arguments>
<Argument Name="Operation" Value="ItemLookup"/>
<Argument Name="Service" Value="AWSECommerceService"/>
<Argument Name="Signature" Value=""/>
<Argument Name="AssociateTag" Value=""/>
<Argument Name="Version" Value="2011-08-01"/>
<Argument Name="ItemId" Value="B00CP8V1Y4"/>
<Argument Name="AWSAccessKeyId" Value=""/>
<Argument Name="Timestamp" Value="2013-08-04T16:30:55Z"/>
<Argument Name="ResponseGroup" Value="Variations,OfferSummary,Offers"/>
</Arguments>
<RequestProcessingTime>0.0358110000000000</RequestProcessingTime>
</OperationRequest>
<Items>
<Request>
<IsValid>True</IsValid>
<ItemLookupRequest>
<IdType>ASIN</IdType>
<ItemId>B00CP8V1Y4</ItemId>
<ResponseGroup>Variations</ResponseGroup>
<ResponseGroup>OfferSummary</ResponseGroup>
<ResponseGroup>Offers</ResponseGroup>
<VariationPage>All</VariationPage>
</ItemLookupRequest>
</Request>
<Item>
<ASIN>B00CP8V1Y4</ASIN>
</Item>
</Items>
</ItemLookupResponse>
stephnr commented 10 years ago

Hi, is this still relevant? Or has this been resolved?

dlo commented 10 years ago

I believe this is a question about the product API. Closing for now, @avinassh if you still need help please comment.