mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change in amazon (except US) kindle stores for price
Get price in the get books plugins
This commit is contained in:
parent
37bd4825dc
commit
3cbe9196ea
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user