Skip to content

Commit

Permalink
Fix Seznam engine
Browse files Browse the repository at this point in the history
  • Loading branch information
dudik committed Jul 26, 2021
1 parent 3b192e6 commit 5a42077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions searx/engines/seznam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a42077

Please sign in to comment.