mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[fix] yahoo: result titles are getting mixed together
This commit is contained in:
parent
0f70e4d305
commit
644ae51417
@ -132,7 +132,8 @@ def response(resp):
|
|||||||
continue
|
continue
|
||||||
url = parse_url(url)
|
url = parse_url(url)
|
||||||
|
|
||||||
title = extract_text(result.xpath('.//h3//a/@aria-label'))
|
title = eval_xpath_getindex(result, './/h3//a/@aria-label', 0, default='')
|
||||||
|
title = extract_text(title)
|
||||||
content = eval_xpath_getindex(result, './/div[contains(@class, "compText")]', 0, default='')
|
content = eval_xpath_getindex(result, './/div[contains(@class, "compText")]', 0, default='')
|
||||||
content = extract_text(content, allow_none=True)
|
content = extract_text(content, allow_none=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user