mirror of https://github.com/searxng/searxng.git
[fix] engine google: use extract_text everywhere
This commit is contained in:
parent
7f9ce3b96e
commit
0cfed94b08
|
@ -338,7 +338,7 @@ def response(resp):
|
||||||
bubble.drop_tree()
|
bubble.drop_tree()
|
||||||
results.append(
|
results.append(
|
||||||
{
|
{
|
||||||
'answer': item.xpath("normalize-space()"),
|
'answer': extract_text(item),
|
||||||
'url': (eval_xpath(item, '../..//a/@href') + [None])[0],
|
'url': (eval_xpath(item, '../..//a/@href') + [None])[0],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue