1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 04:01:40 +01:00

[fix] engine google: use extract_text everywhere

This commit is contained in:
0xhtml 2024-08-01 16:16:46 +02:00 committed by Markus Heiser
parent 7f9ce3b96e
commit 0cfed94b08

View File

@ -338,7 +338,7 @@ def response(resp):
bubble.drop_tree()
results.append(
{
'answer': item.xpath("normalize-space()"),
'answer': extract_text(item),
'url': (eval_xpath(item, '../..//a/@href') + [None])[0],
}
)