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] skip non-complete google news results
Adam Tauber108392f8daf7
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.pyindex 49c6a5d50..6b79ff5c8 100644--- a/searx/engines/google_news.py+++ b/searx/engines/google_news.py@@ -66,11 +66,14 @@ def response(resp):# parse resultsfor result in dom.xpath('//div[@class="g"]|//div[@class="g _cy"]'):- r = {- 'url': result.xpath('.//div[@class="_cnc"]//a/@href')[0],- 'title': ''.join(result.xpath('.//div[@class="_cnc"]//h3//text()')),- 'content': ''.join(result.xpath('.//div[@class="st"]//text()')),- }+ try:+ r = {+ 'url': result.xpath('.//div[@class="_cnc"]//a/@href')[0],+ 'title': ''.join(result.xpath('.//div[@class="_cnc"]//h3//text()')),+ 'content': ''.join(result.xpath('.//div[@class="st"]//text()')),+ }+ except:+ continueimgs = result.xpath('.//img/@src')if len(imgs) and not imgs[0].startswith('data'):