Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] function parameters

asciimoob647244abf32
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 0b50f88bb..04b021e33 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -92,7 +92,8 @@ def response(resp):
results.append({'url': url, 'title': title, 'content': content})
else:
for url, title, content in zip(
- map(extract_url, dom.xpath(url_xpath)),
+ (extract_url(x, search_url) for
+ x in dom.xpath(url_xpath)),
map(extract_text, dom.xpath(title_xpath)),
map(extract_text, dom.xpath(content_xpath))
):