mirror of
https://github.com/searxng/searxng.git
synced 2026-06-22 09:38:34 +02:00
[feat] engines: add support for search.ch/web (Swiss)
This commit is contained in:
@@ -292,7 +292,7 @@ def response(resp) -> EngineResults: # pylint: disable=too-many-branches
|
||||
|
||||
if results_xpath:
|
||||
for result in eval_xpath_list(dom, results_xpath):
|
||||
url = extract_url(eval_xpath_list(result, url_xpath, min_len=1), search_url)
|
||||
url = extract_url(eval_xpath(result, url_xpath), search_url)
|
||||
title = extract_text(eval_xpath_list(result, title_xpath, min_len=1))
|
||||
content = extract_text(eval_xpath_list(result, content_xpath))
|
||||
tmp_result = {'url': url, 'title': title, 'content': content}
|
||||
|
||||
Reference in New Issue
Block a user