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] google news xpath
Marc Abonce Seguin835d1edd5834
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.pyindex 41abf0a01..aadcb76df 100644--- a/searx/engines/google_news.py+++ b/searx/engines/google_news.py@@ -68,8 +68,8 @@ def response(resp):for result in dom.xpath('//div[@class="g"]|//div[@class="g _cy"]'):try:r = {- 'url': result.xpath('.//a[@class="l _PMs"]')[0].attrib.get("href"),- 'title': ''.join(result.xpath('.//a[@class="l _PMs"]//text()')),+ 'url': result.xpath('.//a[@class="l lLrAF"]')[0].attrib.get("href"),+ 'title': ''.join(result.xpath('.//a[@class="l lLrAF"]//text()')),'content': ''.join(result.xpath('.//div[@class="st"]//text()')),}except: