mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[fix] function parameters
This commit is contained in:
parent
72793725e2
commit
b647244abf
@ -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))
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user