@tfuchs wrote:
Hello,
I am looking for a way to look up EANs and get back the ASIN and more information about the product in amazon catalog.
I didn't manage to get this running with the Amazon connector (Amazon.xml). I enabled debugging, it seems like reviews is only working for amazon.com and search doens't work at all?!Request url: http://www.amazon.de/s?url=search-alias=aps&field-keywords=football&page=1&sort=price-asc-rank
Response:
<Parse> <XPath Expr="//div[contains(@@class,'s-result-list')]//h5/a[contains(@@href,'qid=')][not(contains(@@href,'offer-listing'))]"> <Compute Id="Url" Title="URL"> <Compute.Expr><![CDATA[ https://www.amazon.com@(Utils.HtmlDecode(Model.Inp)) ]]></Compute.Expr> <XPath Expr="." Id="Inp" Attribute="href" /> </Compute> <XPath Expr="." Id="Title" Title="Title" /> </XPath> <XPath Expr="//div[@@data-asin][descendant::h5/a[contains(@@href,'qid=')][not(contains(@@href,'offer-listing'))]]"> <XPath Expr="." Id="Asin" Title="ASIN" Attribute="data-asin" /> <XPath Expr=".//span[@@class='a-price'][1]/span" Id="LowestPrice" Title="Lowest Price" Converter="Auto" DefaultValue="" /> <XPath Expr=".//a[contains(@@href,'customerReviews')]" Id="Reviews" Title="Reviews" Converter="Int" DefaultValue="0" /> <Compute Id="AverageReview" Title="Average Score" Converter="Double" DefaultValue="0"> <Compute.Expr><![CDATA[ @{ string output = (Model.Inp is string && Model.Inp.Contains("out")) ? Model.Inp.Substring(0, Model.Inp.IndexOf("out")) : "0"; } @output ]]></Compute.Expr> <XPath Id="Inp" Expr=".//i[contains(@@class,'a-icon a-icon-star')]" Converter="String" DefaultValue="" /> </Compute> <XPath Expr=".//a[contains(@@href,'offer-listing')]/text()" Id="Offers" Title="Offers" Converter="Int" DefaultValue="0" /> <XPath Expr=".//img[contains(@@src,'media-amazon')]" Attribute="src" Id="Thumbnail" Title="Thumbnail" DefaultValue="" /> </XPath> </Parse>
-> No results in Excel.
However, is there another good and easy way to do it? Some XPathOnUrl?
Thanks!
Posts: 2
Participants: 2