여기에 내가 이해하지 못하는 것은 item_lookup()
에 사용되는 Identifier
인 python-amazon-product-apipython-amazon-product-api의 항목 식별자는 무엇입니까?
>>> api = API(locale='uk')
>>> result = api.item_lookup('B006H3MIV8')
>>> for item in result.Items.Item:
... print '%s (%s) in group %s' % (
... item.ItemAttributes.Title, item.ASIN)
...
Chimes of Freedom: The Songs of Bob Dylan (B006H3MIV8)
에서 샘플 코드입니다. 제 아이디어는 여기에 표시된대로 제품에 대해 리뷰를 얻는 것입니다. 그러나 identifer 대신 제품 이름을 사용하고 싶습니다. 예 : Bamboo stylus
. 이것을 어떻게 할 수 있습니까?
>>> api.item_lookup('0316067938', ResponseGroup='Reviews',
... TruncateReviewsAt=256, IncludeReviewsSummary=False)
는 편집 : 나는이 시도 :하지만 나는이 시도 AttributeError: no such child
for item in api.item_search('DVD', Actor="Keanu Reaves",limit=10):
print '%s: "%s"' % (item.ItemAttributes.Identifier,
item.ItemAttributes.Title)
던졌습니다 :하지만 난 다른 오류 얻을 :
mazonproduct.errors.AWSError: AWS.MinimumParameterRequirement: Your request should have atleast 1 of the following parameters: 'Keywords','Title','Power','BrowseNode','Artist','Author','Actor','Director','AudienceRating','Manufacturer','MusicLabel','Composer','Publisher','Brand','Conductor','Orchestra','TextStream','Cuisine','City','Neighborhood'.
for item in api.item_search('Blended', keywords="Keanu Reaves"):
print '%s: "%s"' % (item.ItemAttributes.Actor,
item.ItemAttributes.Title)
주의를 내가 가진 keywords
은 0입니다.
당신은'키워드'가 대문자 K로 시작하고 당신이'키워드'를 작은 k로 썼다는 것을 알 수 있습니까? –