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

【已搞懂】C#中通过AWS获得某产品的ResponseGroup=Images的所有的LargeImage

Amazon crifan 2490浏览 0评论

【问题】

C#中,通过代码:

        awsImages imagesInfo = new awsImages();

        IDictionary<string, string> reqDict = new Dictionary<string, String>();
        reqDict["Service"] = "AWSECommerceService";
        reqDict["Version"] = awsApiVersion;
        reqDict["Operation"] = "ItemLookup";
        reqDict["IdType"] = "ASIN";
        reqDict["ItemId"] = itemAsin;
        //http://docs.aws.amazon.com/AWSECommerceService/latest/DG/RG_Images.html
        reqDict["ResponseGroup"] = "Images";

        String awsReqUrl = Sign(reqDict);
        XmlDocument xmlDocNoXmlns = awsReqUrlToXmlDoc_noXmlns(awsReqUrl);

得到ASIN为B003C9HUDQ的信息是:

    <Items>
        <Request>
            <IsValid>True</IsValid>
            <ItemLookupRequest>
                <IdType>ASIN</IdType>
                <ItemId>B003C9HUDQ</ItemId>
                <ResponseGroup>Images</ResponseGroup>
                <VariationPage>All</VariationPage>
            </ItemLookupRequest>
        </Request>
        <Item>
            <ASIN>B003C9HUDQ</ASIN>
            <SmallImage>
                <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L._SL75_.jpg</URL>
                <Height Units="pixels">45</Height>
                <Width Units="pixels">75</Width>
            </SmallImage>
            <MediumImage>
                <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L._SL160_.jpg</URL>
                <Height Units="pixels">96</Height>
                <Width Units="pixels">160</Width>
            </MediumImage>
            <LargeImage>
                <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L.jpg</URL>
                <Height Units="pixels">301</Height>
                <Width Units="pixels">500</Width>
            </LargeImage>
            <ImageSets>
                <ImageSet Category="primary">
                    <SwatchImage>
                        <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L._SL30_.jpg</URL>
                        <Height Units="pixels">18</Height>
                        <Width Units="pixels">30</Width>
                    </SwatchImage>
                    <SmallImage>
                        <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L._SL75_.jpg</URL>
                        <Height Units="pixels">45</Height>
                        <Width Units="pixels">75</Width>
                    </SmallImage>
                    <ThumbnailImage>
                        <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L._SL75_.jpg</URL>
                        <Height Units="pixels">45</Height>
                        <Width Units="pixels">75</Width>
                    </ThumbnailImage>
                    <TinyImage>
                        <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L._SL110_.jpg</URL>
                        <Height Units="pixels">66</Height>
                        <Width Units="pixels">110</Width>
                    </TinyImage>
                    <MediumImage>
                        <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L._SL160_.jpg</URL>
                        <Height Units="pixels">96</Height>
                        <Width Units="pixels">160</Width>
                    </MediumImage>
                    <LargeImage>
                        <URL>http://ecx.images-amazon.com/images/I/41S0u8yFF3L.jpg</URL>
                        <Height Units="pixels">301</Height>
                        <Width Units="pixels">500</Width>
                    </LargeImage>
                </ImageSet>
            </ImageSets>
        </Item>
    </Items>

很明显,只有一张large图片:

http://ecx.images-amazon.com/images/I/41S0u8yFF3L.jpg

但是去看网页中该产品:

http://www.amazon.com/gp/product/B003C9HUDQ

一共有5张图片的。

而另外4张是:custom image

所以,想要看看能否通过AWS,也得到另外那4张custom image。

【解决过程】

1.没找到有效的通过AWS的API的方式。

不过找到:

How to get product image by Amazon Inventory Management ( AIM ) APIs

提到了说是可以参考:

Abusing Amazon images

去自己拼接出对应的图片的地址。

暂时还是尽量避免用此不太好的方式。

2.随便加上一个:

reqDict["VariationPage"] = "All";

试试,结果返回结果依旧只有一个large image。

3.再参考:

How do I get a book graphic and description from the Amazon Book API?

去一次性给多个ResponseGroup:

        //http://docs.aws.amazon.com/AWSECommerceService/latest/DG/RG_Large.html
        reqDict["ResponseGroup"] = "Images,Large";

试试,结果还是只有一个LargeImage

    <Items>
        <Request>
            <IsValid>True</IsValid>
            <ItemLookupRequest>
                <IdType>ASIN</IdType>
                <ItemId>B000RXKR6M</ItemId>
                <ResponseGroup>Images</ResponseGroup>
                <ResponseGroup>Large</ResponseGroup>
                <VariationPage>All</VariationPage>
            </ItemLookupRequest>
        </Request>
        <Item>
            <ASIN>B000RXKR6M</ASIN>
            <DetailPageURL>http://www.amazon.com/Meguiars-X3002-Microfiber-Wash-Mitt/dp/B000RXKR6M%3FSubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB000RXKR6M</DetailPageURL>
            <ItemLinks>
                <ItemLink>
                    <Description>Technical Details</Description>
                    <URL>http://www.amazon.com/Meguiars-X3002-Microfiber-Wash-Mitt/dp/tech-data/B000RXKR6M%3FSubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</URL>
                </ItemLink>
                <ItemLink>
                    <Description>Add To Baby Registry</Description>
                    <URL>http://www.amazon.com/gp/registry/baby/add-item.html%3Fasin.0%3DB000RXKR6M%26SubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</URL>
                </ItemLink>
                <ItemLink>
                    <Description>Add To Wedding Registry</Description>
                    <URL>http://www.amazon.com/gp/registry/wedding/add-item.html%3Fasin.0%3DB000RXKR6M%26SubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</URL>
                </ItemLink>
                <ItemLink>
                    <Description>Add To Wishlist</Description>
                    <URL>http://www.amazon.com/gp/registry/wishlist/add-item.html%3Fasin.0%3DB000RXKR6M%26SubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</URL>
                </ItemLink>
                <ItemLink>
                    <Description>Tell A Friend</Description>
                    <URL>http://www.amazon.com/gp/pdp/taf/B000RXKR6M%3FSubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</URL>
                </ItemLink>
                <ItemLink>
                    <Description>All Customer Reviews</Description>
                    <URL>http://www.amazon.com/review/product/B000RXKR6M%3FSubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</URL>
                </ItemLink>
                <ItemLink>
                    <Description>All Offers</Description>
                    <URL>http://www.amazon.com/gp/offer-listing/B000RXKR6M%3FSubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</URL>
                </ItemLink>
            </ItemLinks>
            <SalesRank>24</SalesRank>
            <SmallImage>
                <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL._SL75_.jpg</URL>
                <Height Units="pixels">75</Height>
                <Width Units="pixels">43</Width>
            </SmallImage>
            <MediumImage>
                <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL._SL160_.jpg</URL>
                <Height Units="pixels">160</Height>
                <Width Units="pixels">91</Width>
            </MediumImage>
            <LargeImage>
                <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL.jpg</URL>
                <Height Units="pixels">500</Height>
                <Width Units="pixels">284</Width>
            </LargeImage>
            <ImageSets>
                <ImageSet Category="primary">
                    <SwatchImage>
                        <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL._SL30_.jpg</URL>
                        <Height Units="pixels">30</Height>
                        <Width Units="pixels">17</Width>
                    </SwatchImage>
                    <SmallImage>
                        <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL._SL75_.jpg</URL>
                        <Height Units="pixels">75</Height>
                        <Width Units="pixels">43</Width>
                    </SmallImage>
                    <ThumbnailImage>
                        <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL._SL75_.jpg</URL>
                        <Height Units="pixels">75</Height>
                        <Width Units="pixels">43</Width>
                    </ThumbnailImage>
                    <TinyImage>
                        <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL._SL110_.jpg</URL>
                        <Height Units="pixels">110</Height>
                        <Width Units="pixels">62</Width>
                    </TinyImage>
                    <MediumImage>
                        <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL._SL160_.jpg</URL>
                        <Height Units="pixels">160</Height>
                        <Width Units="pixels">91</Width>
                    </MediumImage>
                    <LargeImage>
                        <URL>http://ecx.images-amazon.com/images/I/41%2BN1PG-7iL.jpg</URL>
                        <Height Units="pixels">500</Height>
                        <Width Units="pixels">284</Width>
                    </LargeImage>
                </ImageSet>
            </ImageSets>
            <ItemAttributes>
                <Binding>Automotive</Binding>
                <Brand>Meguiar's</Brand>
                <CatalogNumberList>
                    <CatalogNumberListElement>MG-X3002</CatalogNumberListElement>
                    <CatalogNumberListElement>X3002</CatalogNumberListElement>
                    <CatalogNumberListElement>MG-X3002_1</CatalogNumberListElement>
                    <CatalogNumberListElement>MEG-X3002</CatalogNumberListElement>
                </CatalogNumberList>
                <EAN>0900000000102</EAN>
                <EANList>
                    <EANListElement>0900000000102</EANListElement>
                    <EANListElement>0070382830045</EANListElement>
                    <EANListElement>0070382830021</EANListElement>
                </EANList>
                <Feature>Super-soft, deep pile and totally lint-free</Feature>
                <Feature>Can be washed and re-used several times</Feature>
                <Feature>Clear coat safe microfiber lifts and traps dirt and grime for a brilliant, swirl-free finish</Feature>
                <Feature>Provides a gentle wash action</Feature>
                <Feature>Instantly restores your show car perfect finish</Feature>
                <ItemDimensions>
                    <Weight Units="hundredths-pounds">29</Weight>
                </ItemDimensions>
                <Label>Meguiar's</Label>
                <ListPrice>
                    <Amount>629</Amount>
                    <CurrencyCode>USD</CurrencyCode>
                    <FormattedPrice>$6.29</FormattedPrice>
                </ListPrice>
                <Manufacturer>Meguiar's</Manufacturer>
                <ManufacturerPartsWarrantyDescription>Parts</ManufacturerPartsWarrantyDescription>
                <Model>X3002</Model>
                <MPN>X3002</MPN>
                <NumberOfItems>1</NumberOfItems>
                <PackageDimensions>
                    <Height Units="hundredths-inches">190</Height>
                    <Length Units="hundredths-inches">1200</Length>
                    <Weight Units="hundredths-pounds">26</Weight>
                    <Width Units="hundredths-inches">700</Width>
                </PackageDimensions>
                <PackageQuantity>1</PackageQuantity>
                <PartNumber>X3002</PartNumber>
                <ProductGroup>Automotive Parts and Accessories</ProductGroup>
                <ProductTypeName>AUTO_ACCESSORY</ProductTypeName>
                <Publisher>Meguiar's</Publisher>
                <SKU>96-CU6G-48J8</SKU>
                <Studio>Meguiar's</Studio>
                <Title>Meguiar's Microfiber Wash Mitt</Title>
                <UPC>900000000102</UPC>
                <UPCList>
                    <UPCListElement>900000000102</UPCListElement>
                    <UPCListElement>070382830021</UPCListElement>
                    <UPCListElement>070382830045</UPCListElement>
                </UPCList>
            </ItemAttributes>
            <OfferSummary>
                <LowestNewPrice>
                    <Amount>495</Amount>
                    <CurrencyCode>USD</CurrencyCode>
                    <FormattedPrice>$4.95</FormattedPrice>
                </LowestNewPrice>
                <TotalNew>8</TotalNew>
                <TotalUsed>0</TotalUsed>
                <TotalCollectible>0</TotalCollectible>
                <TotalRefurbished>0</TotalRefurbished>
            </OfferSummary>
            <Offers>
                <TotalOffers>1</TotalOffers>
                <TotalOfferPages>1</TotalOfferPages>
                <MoreOffersUrl>http://www.amazon.com/gp/offer-listing/B000RXKR6M%3FSubscriptionId%3DAKIAJQAUAH2R4HCG63LQ%26tag%3Dcrifancom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB000RXKR6M</MoreOffersUrl>
                <Offer>
                    <OfferAttributes>
                        <Condition>New</Condition>
                    </OfferAttributes>
                    <OfferListing>
                        <OfferListingId>m1PXTxa%2BskTsz21SoRDYTKdqetnYRmBBN7PcM35HH6LVKTslcdBNWfcpjpsQQFFZyDUVlsUtPherrgd9d05V3FHfInvaWXzXHpa2580sBw0%3D</OfferListingId>
                        <Price>
                            <Amount>608</Amount>
                            <CurrencyCode>USD</CurrencyCode>
                            <FormattedPrice>$6.08</FormattedPrice>
                        </Price>
                        <AmountSaved>
                            <Amount>21</Amount>
                            <CurrencyCode>USD</CurrencyCode>
                            <FormattedPrice>$0.21</FormattedPrice>
                        </AmountSaved>
                        <PercentageSaved>3</PercentageSaved>
                        <Availability>Usually ships in 24 hours</Availability>
                        <AvailabilityAttributes>
                            <AvailabilityType>now</AvailabilityType>
                            <MinimumHours>0</MinimumHours>
                            <MaximumHours>0</MaximumHours>
                        </AvailabilityAttributes>
                        <IsEligibleForSuperSaverShipping>1</IsEligibleForSuperSaverShipping>
                    </OfferListing>
                </Offer>
            </Offers>
            <CustomerReviews>
                <IFrameURL>http://www.amazon.com/reviews/iframe?akid=AKIAJQAUAH2R4HCG63LQ&amp;alinkCode=xm2&amp;asin=B000RXKR6M&amp;atag=crifancom-20&amp;exp=2013-06-17T04%3A58%3A24Z&amp;v=2&amp;sig=pj1eQY0HcS42SFnQQYfWF%2FHGKjiLgxgr%2FQ%2BiqDp5qHo%3D</IFrameURL>
                <HasReviews>true</HasReviews>
            </CustomerReviews>
            <EditorialReviews>
                <EditorialReview>
                    <Source>Product Description</Source>
                    <Content>Meguiar's Microfiber Wash Mitt allows for swirl-free washing while lifting and trapping the dirt. The comfort-fit cuff and soft inner lining makes this wash mitt a pleasure to use. This super thick mitt can absorb up to ten times its own weight in wash solution, delivering ultimate finish on all automobile surfaces.</Content>
                    <IsLinkSuppressed>0</IsLinkSuppressed>
                </EditorialReview>
                <EditorialReview>
                    <Source>Amazon.com</Source>
                    <Content>&lt;div class="aplus"&gt;&lt;p&gt;Meguiar’s Microfiber Wash Mitt features super absorbent microfiber that carries more water and suds. It’s super-soft, deep microfiber safely lifts and traps dirt and grime for a brilliant, swirl-free finish that is lint-free and can be washed and re-used repeatedly.  Meguiar’s Microfiber Wash Mitt is an essential tool in creating and maintaining a show car perfect finish each time you wash your vehicle. &lt;/p&gt;  &lt;div class="rightImage" style="width:300px"&gt;&lt;img alt="image" src=http://g-ec2.images-amazon.com/images/G/01/automotive/detail-page/B000RXKR6M-0.jpg"/&gt; &lt;div class="imageCaption"&gt;Gentle yet powerful cleaning&lt;/div&gt;&lt;/div&gt; &lt;h5&gt;Wash Method&lt;/h5&gt; &lt;p&gt;Washing is defined as the removal of loose contaminants from any surface. For washing Meguiar’s recommends that you use the following products and tools: your favorite Meguiar’s car wash soap, Meguiar’s Microfiber Wash Mitt, Meguiar's  Water Magnet microfiber drying towel, and two five-gallon buckets.&lt;/p&gt;  &lt;h5&gt;Choosing a Car Wash&lt;/h5&gt; &lt;p&gt;Meguiar's recommends using a pH-balanced, non-detergent car wash using the correct dilution with a high quality wash mitt, like Meguiar's Microfiber Wash Mitt. All of Meguiar's car washes are non-detergent and offer excellent cleaning ability while lubricating the surface to help dirt and grime glide off the paint instead of grind into the paint.  For your selection, Meguiar's offers various car washes. Meguiar's Ultimate Wash and Wax is the perfect way to clean and shine your car's finish in-between regular waxing, boosting your protection, glossiness and shine and is compatible with all Meguiar's washes and waxes. Meguiar's Ultimate Wash and Wax provides hybrid carnauba/polymer wax protection and foaming action to safely lift dirt and grime, as well as enhance gloss and shine in one easy step.&lt;/p&gt;  &lt;p&gt;Meguiar's Gold Class car wash shampoo and conditioner is a rich and luxurious product designed to both wash and condition paint in one easy step. The premium formula gently foams away tough dirt, road grime and contaminants without compromising wax protection.  Meguiar's Gold Class car wash shampoo and conditioner's premium formula gently foams away dirt and grime and its conditioners reveal color and clarity.&lt;/p&gt;  &lt;p&gt;Meguiar's Deep Crystal car wash contains special ingredients that extend the life of the suds. Dirt and grime are quickly loosened and removed while wax protection is preserved and without harming your paint.&lt;/p&gt;  &lt;p&gt;Never use dish washing detergent as it may strip wax protection, promote oxidation and lead to premature deterioration of vinyl, plastic and rubber trim.&lt;/p&gt; &lt;div class="leftImage" style="width:300px"&gt;&lt;img alt="image" src=http://g-ec2.images-amazon.com/images/G/01/automotive/detail-page/B000RXKR6M-1.jpg"/&gt;&lt;div class="imageCaption"&gt;Use a two-bucket method with a Grit Guard (sold separately) to prevent paint damage&lt;/div&gt;&lt;/div&gt; &lt;h5&gt;Two Bucket Method&lt;/h5&gt; &lt;p&gt;Meguiar's recommends that you use the “Two Bucket” method in conjunction with the Meguiar's Grit Guard to reduce the chances of inflicting swirls into your paint. The two-bucket method makes use of one bucket for your wash solution and a second bucket with just plain water to use as a rinse for Meguiar's Microfiber Wash Mitt.&lt;/p&gt;  &lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;1. Use the water bucket to dunk your Microfiber Wash Mitt into the soapy water bucket and wash a panel or section of your vehicle. &lt;/li&gt; &lt;li&gt;2. Dunk the Microfiber Wash Mitt and any loose contaminants it picked up, into the rinse bucket, swish it around and wring it out. &lt;/li&gt; &lt;li&gt;3. The Grit Guard is simply a baffle in the bottom of the bucket, preventing loose contaminants from being dispersed back into the water the next time you rinse your wash mitt. &lt;/li&gt; &lt;li&gt;4. Now you can dunk your mitt into the soapy water bucket and wash the next panel or section of your vehicle. As an added safety precaution you can insert a Grit Guard into your soapy water bucket as well.&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;  &lt;h5&gt;Selecting a Drying Cloth &lt;/h5&gt; &lt;p&gt;Drying cloths or chamois should be used after washing your vehicle, because you should never just let your vehicle air dry as this leads to water spots.  Selecting your drying towel is every bit as important as choosing your wash mitt as you want to select something that is absorbent but also very soft and gentle to the paint.&lt;/p&gt;  &lt;p&gt;Meguiar's offers a microfiber drying towels for you to select from that will not harm or scratch your paint. Meguiar's water magnet microfiber drying towel reduces drying time with less wring-outs by absorbing up to two times the water of traditional terry towels. The extra large 22" x 30" waffle texture wrings out easily and leaves a spot-free finish.&lt;/p&gt;  &lt;br clear="all"&gt;&lt;/div&gt;</Content>
                    <IsLinkSuppressed>0</IsLinkSuppressed>
                </EditorialReview>
            </EditorialReviews>
            <SimilarProducts>
                <SimilarProduct>
                    <ASIN>B0009IQZFM</ASIN>
                    <Title>Meguiar's Water Magnet Drying Towel</Title>
                </SimilarProduct>
                <SimilarProduct>
                    <ASIN>B0009IQZH0</ASIN>
                    <Title>Meguiar's Supreme Shine Microfiber Cloths (Pack of 3)</Title>
                </SimilarProduct>
                <SimilarProduct>
                    <ASIN>B0009IQXFO</ASIN>
                    <Title>Meguiar's Gold Class Car Wash Shampoo and Conditioner, 64oz.</Title>
                </SimilarProduct>
                <SimilarProduct>
                    <ASIN>B001GJ3DZS</ASIN>
                    <Title>Mothers Wheel Brush</Title>
                </SimilarProduct>
                <SimilarProduct>
                    <ASIN>B0009IQZQG</ASIN>
                    <Title>Meguiar's EvenCoat Applicator - Pack of 2</Title>
                </SimilarProduct>
            </SimilarProducts>
            <Accessories>
                <Accessory>
                    <ASIN>B00152M2H6</ASIN>
                    <Title>SoapJet Spray Nozzle</Title>
                </Accessory>
                <Accessory>
                    <ASIN>B003EVZULQ</ASIN>
                    <Title>Meguiar's Professional Headlight and Spot Repair Kit</Title>
                </Accessory>
                <Accessory>
                    <ASIN>B0009IQZFM</ASIN>
                    <Title>Meguiar's Water Magnet Drying Towel</Title>
                </Accessory>
                <Accessory>
                    <ASIN>B000FVC6K6</ASIN>
                    <Title>Pimp Stixxx Component Cleaning and Detailing System for Motorcycles</Title>
                </Accessory>
                <Accessory>
                    <ASIN>B0009IQZH0</ASIN>
                    <Title>Meguiar's Supreme Shine Microfiber Cloths (Pack of 3)</Title>
                </Accessory>
            </Accessories>
            <BrowseNodes>
                <BrowseNode>
                    <BrowseNodeId>15718691</BrowseNodeId>
                    <Name>Chamois</Name>
                    <Ancestors>
                        <BrowseNode>
                            <BrowseNodeId>15718681</BrowseNodeId>
                            <Name>Cloths &amp; Towels</Name>
                            <Ancestors>
                                <BrowseNode>
                                    <BrowseNodeId>15718651</BrowseNodeId>
                                    <Name>Tools &amp; Equipment</Name>
                                    <Ancestors>
                                        <BrowseNode>
                                            <BrowseNodeId>15718271</BrowseNodeId>
                                            <Name>Car Care</Name>
                                            <Ancestors>
                                                <BrowseNode>
                                                    <BrowseNodeId>15690151</BrowseNodeId>
                                                    <Name>Categories</Name>
                                                    <IsCategoryRoot>1</IsCategoryRoot>
                                                    <Ancestors>
                                                        <BrowseNode>
                                                            <BrowseNodeId>15684181</BrowseNodeId>
                                                            <Name>Automotive</Name>
                                                        </BrowseNode>
                                                    </Ancestors>
                                                </BrowseNode>
                                            </Ancestors>
                                        </BrowseNode>
                                    </Ancestors>
                                </BrowseNode>
                            </Ancestors>
                        </BrowseNode>
                    </Ancestors>
                </BrowseNode>
                <BrowseNode>
                    <BrowseNodeId>15718721</BrowseNodeId>
                    <Name>Microfiber</Name>
                    <Ancestors>
                        <BrowseNode>
                            <BrowseNodeId>15718681</BrowseNodeId>
                            <Name>Cloths &amp; Towels</Name>
                            <Ancestors>
                                <BrowseNode>
                                    <BrowseNodeId>15718651</BrowseNodeId>
                                    <Name>Tools &amp; Equipment</Name>
                                    <Ancestors>
                                        <BrowseNode>
                                            <BrowseNodeId>15718271</BrowseNodeId>
                                            <Name>Car Care</Name>
                                            <Ancestors>
                                                <BrowseNode>
                                                    <BrowseNodeId>15690151</BrowseNodeId>
                                                    <Name>Categories</Name>
                                                    <IsCategoryRoot>1</IsCategoryRoot>
                                                    <Ancestors>
                                                        <BrowseNode>
                                                            <BrowseNodeId>15684181</BrowseNodeId>
                                                            <Name>Automotive</Name>
                                                        </BrowseNode>
                                                    </Ancestors>
                                                </BrowseNode>
                                            </Ancestors>
                                        </BrowseNode>
                                    </Ancestors>
                                </BrowseNode>
                            </Ancestors>
                        </BrowseNode>
                    </Ancestors>
                </BrowseNode>
            </BrowseNodes>
        </Item>
    </Items>

 

【总结】

貌似没法通过AWS去获得一个ASIN的所有的image。只能得到一个Primary的LargeImage。

其余的Custom Image,都没法得到。

不过,后来是自己发现的,其实给定一个ASIN,可以去访问:

http://www.amazon.com/gp/customer-media/product-gallery/ASIN

去访问对应的custom image的页面,比如:

对于B003C9HUDQ,就是:

http://www.amazon.com/gp/customer-media/product-gallery/B003C9HUDQ/

就可以看到对应的custom image的图片了。

也就可以从该页面中,抓取到对应的custom image了。

转载请注明:在路上 » 【已搞懂】C#中通过AWS获得某产品的ResponseGroup=Images的所有的LargeImage

发表我的评论
取消评论

表情

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

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