summaryrefslogtreecommitdiff
path: root/searx/engines/seznam.py
diff options
context:
space:
mode:
authorSamuel Dudik <samuel.dudik@gmail.com>2021-07-26 19:57:55 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-27 07:13:41 +0200
commit7a7ef9cea64931b26b076918935481689a487443 (patch)
tree112d79d14384f9506ec599f686243f5f133f7d18 /searx/engines/seznam.py
parent48fe83b901dbfefae5a0307de21cd586cd1d5fb6 (diff)
downloadsearxng-7a7ef9cea64931b26b076918935481689a487443.tar.gz
searxng-7a7ef9cea64931b26b076918935481689a487443.zip
[fix] Seznam engine - some XPath selectors has been changed
Merged from https://github.com/dudik/searx/commit/5a4207759 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/seznam.py')
-rw-r--r--searx/engines/seznam.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/seznam.py b/searx/engines/seznam.py
index 042088dbe..9cd50dfc0 100644
--- a/searx/engines/seznam.py
+++ b/searx/engines/seznam.py
@@ -53,14 +53,14 @@ def response(resp):
dom = html.fromstring(resp.content.decode())
for result_element in eval_xpath_list(dom, '//div[@data-dot="results"]/div'):
- result_data = eval_xpath_getindex(result_element, './/div[contains(@class, "Result")]', 0, default=None)
+ result_data = eval_xpath_getindex(result_element, './/div[contains(@class, "bec586")]', 0, default=None)
if result_data is None:
continue
title_element = eval_xpath_getindex(result_element, './/h3/a', 0)
results.append({
'url': title_element.get('href'),
'title': extract_text(title_element),
- 'content': extract_text(eval_xpath(result_data, './/p[@class="Result-description"]')),
+ 'content': extract_text(eval_xpath(result_data, './/div[@class="_3eded7"]')),
})
return results