Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] engine google: strip bubble text from answers

0xhtml7f9ce3b96e2c
diff --git a/searx/engines/google.py b/searx/engines/google.py
index 90d687a4e..3eaf1c19d 100644
--- a/searx/engines/google.py
+++ b/searx/engines/google.py
@@ -334,6 +334,8 @@ def response(resp):
# results --> answer
answer_list = eval_xpath(dom, '//div[contains(@class, "LGOjhe")]')
for item in answer_list:
+ for bubble in eval_xpath(item, './/div[@class="nnFGuf"]'):
+ bubble.drop_tree()
results.append(
{
'answer': item.xpath("normalize-space()"),