序言:我不确定我是否完全理解您在这里寻找的内容,但无论如何我都会分享我的发现。
我能够检索评论的 iframe URL,并且能够在将评论 iframe 嵌入到 .html 页面后看到它。我使用以下属性来检索 iframe URL:
Operation=ItemLookup&
ItemId=1451648537&
ResponseGroup=Reviews&
TruncateReviewsAt="256"&
IncludeReviewsSummary="False"&
Version=2011-08-01 <= important: can't be less than this version
AssociateTag=<YourAssociateTag> <= required when using this version, can be anything (not verified by Amazon)
响应的相关部分:
<Item>
<ASIN>1451648537</ASIN>
<CustomerReviews>
<IFrameURL>http://www.amazon.com/reviews/iframe?akid=<YourAmazonKey>&alinkCode=xm2&asin=1451648537&atag=<YourAssociateTag>&exp=2012-01-06T02%3A10%3A38Z&summary=0&truncate=256&v=2&sig=kjWPue1N75%2FiI1hW67XYApWxnKeT2tlT%2FJ1rw4WLlUo%3D</IFrameURL>
<HasReviews>true</HasReviews>
</CustomerReviews>
</Item>
请注意,您将无法使用此 iframe URL,因为 (1) 我已经删除了我的 Amazon Key 和用于创建签名的 Associate Tag,并且 (2) 它在通话后 24 小时后过期。
如果您使用我使用过的相同属性,并密切注意Version
andAssociateTag
字段,您将获得包含 iframe URL 的结果。
然后我将 url 嵌入到 iframe 中:
<html>
<body>
<iframe src="http://www.amazon.com/reviews/iframe?akid=<YourAmazonKey>&alinkCode=xm2&asin=1451648537&atag=<YourAssociateTag>&exp=2012-01-06T02%3A10%3A38Z&summary=0&truncate=256&v=2&sig=kjWPue1N75%2FiI1hW67XYApWxnKeT2tlT%2FJ1rw4WLlUo%3D"/>
</body>
</html>
如下所示:

正如我在序言中所说,我不确定这是否是您正在寻找的,因为赏金的要求是:
...访问亚马逊的评论排名信息
这不完全是评论排名信息,而是实际评论,我认为评论排名信息的含义更符合数据本身(例如 100 条评论@4 星等)。但是,在您的问题中,您说 iframe 不起作用:
但是,使用他们建议的参数进行测试以获得 Iframe,但现在似乎连 Iframe 都不再工作了。
所以我想我至少会为您提供获取和使用 iframe 的正确方法。