SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] searx/results.py: strip result['content'] only if it exists
Alexandre Flamentd9658a7f914e
diff --git a/searx/results.py b/searx/results.pyindex ae8cf2498..2e81f5dc4 100644--- a/searx/results.py+++ b/searx/results.py@@ -255,7 +255,8 @@ class ResultContainer:result['url'] = result['parsed_url'].geturl()# strip multiple spaces and cariage returns from content- result['content'] = WHITESPACE_REGEX.sub(' ', result['content'])+ if result.get('content'):+ result['content'] = WHITESPACE_REGEX.sub(' ', result['content'])return True