Change in amazon (except US) kindle stores for price

Get price in the get books plugins
This commit is contained in:
Serized 2017-07-15 10:29:33 +02:00
parent 37bd4825dc
commit 3cbe9196ea
7 changed files with 7 additions and 7 deletions

View File

@ -66,7 +66,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(), "by ")]/following-sibling::span//text()'
price_xpath = 'descendant::span[contains(@class, "sx-price")]/../@aria-label'
price_xpath = 'descendant::span[contains(@class, "s-price")]//text()'
else:
return

View File

@ -66,7 +66,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(), "by ")]/following-sibling::span//text()'
price_xpath = 'descendant::span[contains(@class, "sx-price")]/../@aria-label'
price_xpath = 'descendant::span[contains(@class, "s-price")]//text()'
else:
return

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

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

View File

@ -66,7 +66,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(), "by ")]/following-sibling::span//text()'
price_xpath = 'descendant::span[contains(@class, "sx-price")]/../@aria-label'
price_xpath = 'descendant::span[contains(@class, "s-price")]//text()'
else:
return

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

View File

@ -66,7 +66,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(), "by ")]/following-sibling::span//text()'
price_xpath = 'descendant::span[contains(@class, "sx-price")]/../@aria-label'
price_xpath = 'descendant::span[contains(@class, "s-price")]//text()'
else:
return