[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],
}
)