diff options
author | 0xhtml <34682885+0xhtml@users.noreply.github.com> | 2024-08-01 16:16:46 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-08-08 09:59:45 +0200 |
commit | 0cfed94b08ad6c767dceab89b36a62fc9785a534 (patch) | |
tree | 13ff0361593628704b7112922f60e0f1f1008f65 /searx/engines | |
parent | 7f9ce3b96e2c51aa218c3a6f554e3d8e4b9096f9 (diff) | |
download | searxng-0cfed94b08ad6c767dceab89b36a62fc9785a534.tar.gz searxng-0cfed94b08ad6c767dceab89b36a62fc9785a534.zip |
[fix] engine google: use extract_text everywhere
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/google.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google.py b/searx/engines/google.py index 3eaf1c19d..f9215783c 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -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], } ) |