最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【注意事项】AWS中的Toys的BrowseNodeId=493964不是真正的根分类

Amazon crifan 2613浏览 0评论

根据amazon官网:

http://docs.aws.amazon.com/AWSECommerceService/latest/DG/BrowseNodeIDs.html

的描述,Toys针对US的BrowseNodeId=493964

但是经过实际使用时发现,实际上,对于BrowseNodeId=493964去做BrowseNodeLookup的话,返回的结果是:

<BrowseNodeLookupResponse>
    <OperationRequest>
        <HTTPHeaders>
            <Header Name="UserAgent" Value="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E" />
        </HTTPHeaders>
        <RequestId>ac3845d0-74ae-4eee-970e-cf24a3531378</RequestId>
        <Arguments>
            <Argument Name="Operation" Value="BrowseNodeLookup" />
            <Argument Name="Service" Value="AWSECommerceService" />
            <Argument Name="Signature" Value="aTH53V397d3x+60l6DiSrV/9n5Z8WCCzIONJNt3Uq54=" />
            <Argument Name="AssociateTag" Value="xxx" />
            <Argument Name="Version" Value="2011-08-01" />
            <Argument Name="BrowseNodeId" Value="493964" />
            <Argument Name="AWSAccessKeyId" Value="xxx" />
            <Argument Name="Timestamp" Value="2013-07-16T09:44:29Z" />
            <Argument Name="ResponseGroup" Value="BrowseNodeInfo" />
        </Arguments>
        <RequestProcessingTime>0.002717</RequestProcessingTime>
    </OperationRequest>
    <BrowseNodes>
        <Request>
            <IsValid>True</IsValid>
            <BrowseNodeLookupRequest>
                <BrowseNodeId>493964</BrowseNodeId>
                <ResponseGroup>BrowseNodeInfo</ResponseGroup>
            </BrowseNodeLookupRequest>
        </Request>
        <BrowseNode>
            <BrowseNodeId>493964</BrowseNodeId>
            <Name>Categories</Name>
            <IsCategoryRoot>1</IsCategoryRoot>
            <Children>
                <BrowseNode>
                    <BrowseNodeId>281407</BrowseNodeId>
                    <Name>Accessories &amp; Supplies</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>502394</BrowseNodeId>
                    <Name>Camera &amp; Photo</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>2811119011</BrowseNodeId>
                    <Name>Cell Phones &amp; Accessories</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>541966</BrowseNodeId>
                    <Name>Computers &amp; Accessories</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>2642125011</BrowseNodeId>
                    <Name>eBook Readers &amp; Accessories</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>2242348011</BrowseNodeId>
                    <Name>Electronics Warranties</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>172526</BrowseNodeId>
                    <Name>GPS &amp; Navigation</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>667846011</BrowseNodeId>
                    <Name>Home Audio</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>172574</BrowseNodeId>
                    <Name>Office Electronics</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>172623</BrowseNodeId>
                    <Name>Portable Audio &amp; Video</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>524136</BrowseNodeId>
                    <Name>Security &amp; Surveillance</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>16285901</BrowseNodeId>
                    <Name>Service &amp; Replacement Plans</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>1266092011</BrowseNodeId>
                    <Name>Television &amp; Video</Name>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>3248684011</BrowseNodeId>
                    <Name>Car &amp; Vehicle Electronics</Name>
                </BrowseNode>
            </Children>
            <Ancestors>
                <BrowseNode>
                    <BrowseNodeId>172282</BrowseNodeId>
                    <Name>Electronics</Name>
                </BrowseNode>
            </Ancestors>
        </BrowseNode>
    </BrowseNodes>
</BrowseNodeLookupResponse>

很明显,493964是Electronics(BrowseNodeId=172282)的一个子节点而已。

即, BrowseNodeId=493964的Toys,不是独立的根节点。

另外,去网页版:

http://www.amazon.com/gp/site-directory/ref=topnav_sad

http://www.amazon.com/Best-Sellers-Toys-Games/zgbs/toys-and-games/ref=zg_bs_nav_0

http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dtoys-and-games&field-keywords=

看了下,很明显,Toys,本身是有个根节点的。

只是不知道对应的BrowseNodeId是多少。

然后后来找到了:

http://www.browsenodes.com/

中有写:

Toys and Games (165793011)

所以,此处,才知道,Toys分类的根节点的BrowseNodeId=165793011

所以去程序中去试试。

得到结果是:

<BrowseNodeLookupResponse>
    <OperationRequest>
        <HTTPHeaders>
            <Header Name="UserAgent" Value="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E" />
        </HTTPHeaders>
        <RequestId>430d1daf-0f77-4ffb-94dd-ef45833acb6c</RequestId>
        <Arguments>
            <Argument Name="Operation" Value="BrowseNodeLookup" />
            <Argument Name="Service" Value="AWSECommerceService" />
            <Argument Name="Signature" Value="6Jc8lSwP2zCCyB5jCP1qul5TgeYuMnj5vn2kiHuS5js=" />
            <Argument Name="AssociateTag" Value="crifancom-20" />
            <Argument Name="Version" Value="2011-08-01" />
            <Argument Name="BrowseNodeId" Value="165793011" />
            <Argument Name="AWSAccessKeyId" Value="AKIAJQAUAH2R4HCG63LQ" />
            <Argument Name="Timestamp" Value="2013-07-16T09:54:38Z" />
            <Argument Name="ResponseGroup" Value="BrowseNodeInfo" />
        </Arguments>
        <RequestProcessingTime>0.002052</RequestProcessingTime>
    </OperationRequest>
    <BrowseNodes>
        <Request>
            <IsValid>True</IsValid>
            <BrowseNodeLookupRequest>
                <BrowseNodeId>165793011</BrowseNodeId>
                <ResponseGroup>BrowseNodeInfo</ResponseGroup>
            </BrowseNodeLookupRequest>
        </Request>
        <BrowseNode>
            <BrowseNodeId>165793011</BrowseNodeId>
            <Name>Toys &amp; Games</Name>
            <Children>
                <BrowseNode>
                    <BrowseNodeId>165795011</BrowseNodeId>
                    <Name>Categories</Name>
                    <IsCategoryRoot>1</IsCategoryRoot>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>219221011</BrowseNodeId>
                    <Name>Featured Categories</Name>
                </BrowseNode>
            </Children>
        </BrowseNode>
    </BrowseNodes>
</BrowseNodeLookupResponse>

即, 此处实际上是:

BrowseNodeId=165793011的Toys & Games

才是真正的根节点。

但是,此处还是不知道真正的SearchIndex是啥。

后来通过:

http://www.browsenodes.com/node-165793011.html

http://www.browsenodes.com/node-166092011.html

http://www.browsenodes.com/node-165795011.html

http://www.browsenodes.com/search-index-Toys.html

而得知,最合适的SearchIndex是Toys。

所以,至此,最开始的:

针对US的Toys,BrowseNodeId=493964

实际上则是:

针对US的Toys,BrowseNodeId=165793011,显示出来的名字是:Toys & Games

 

【总结】

Amazon的AWS的API的BrowserNodeId官网:

http://docs.aws.amazon.com/AWSECommerceService/latest/DG/BrowseNodeIDs.html

真尼玛是太坑爹了:

很多数据和内容都变了,但是表格没更新,结果出现了N多错误的内容,消耗了太多的时间和精力。。。。

 

注:

其他一堆问题,可参见:

【整理】AWS的API使用注意事项

转载请注明:在路上 » 【注意事项】AWS中的Toys的BrowseNodeId=493964不是真正的根分类

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.187 seconds, using 22.23MB memory