Update price detection X-path

The price isn't presented in the same way as on the US store
This commit is contained in:
Serized 2017-06-17 13:15:42 +02:00
parent 5d331a6c46
commit eb45063d83

View File

@ -68,7 +68,7 @@ def search_amazon(query, max_results=10, timeout=60,
cover_xpath = "descendant-or-self::img[@class and contains(concat(' ', normalize-space(@class), ' '), ' s-access-image ')]/@src"
title_xpath = "descendant-or-self::h2[@class and contains(concat(' ', normalize-space(@class), ' '), ' s-access-title ')]//text()"
author_xpath = './/span[starts-with(text(), "%s ")]/following-sibling::span//text()' % BY
price_xpath = 'descendant::span[contains(@class, "sx-price")]/../@aria-label'
price_xpath = 'descendant::span[contains(@class, "s-price")]//text()'
else:
return