mirror of https://github.com/searxng/searxng.git
Merge pull request #1096 from capric98/yahoo
fix: FutureWarning from lxml
This commit is contained in:
commit
4341ceceb4
|
@ -142,8 +142,7 @@ def response(resp):
|
||||||
title = extract_text(title)[offset:]
|
title = extract_text(title)[offset:]
|
||||||
|
|
||||||
content = eval_xpath_getindex(result, './/div[contains(@class, "compText")]', 0, default='')
|
content = eval_xpath_getindex(result, './/div[contains(@class, "compText")]', 0, default='')
|
||||||
if content:
|
content = extract_text(content, allow_none=True)
|
||||||
content = extract_text(content)
|
|
||||||
|
|
||||||
# append result
|
# append result
|
||||||
results.append({'url': url, 'title': title, 'content': content})
|
results.append({'url': url, 'title': title, 'content': content})
|
||||||
|
|
Loading…
Reference in New Issue