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] add answers, suggestions, corrections to rss output
Adam Tauber9bc24080bf4c
diff --git a/searx/templates/__common__/opensearch_response_rss.xml b/searx/templates/__common__/opensearch_response_rss.xmlindex 32c42e7c7..3781dd87c 100644--- a/searx/templates/__common__/opensearch_response_rss.xml+++ b/searx/templates/__common__/opensearch_response_rss.xml@@ -25,5 +25,29 @@{% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}</item>{% endfor %}+ {% if answers %}+ {% for a in answers %}+ <item>+ <title>{{ a }}</title>+ <type>answer</type>+ </item>+ {% endfor %}+ {% endif %}+ {% if corrections %}+ {% for a in corrections %}+ <item>+ <title>{{ a }}</title>+ <type>correction</type>+ </item>+ {% endfor %}+ {% endif %}+ {% if suggestions %}+ {% for a in suggestions %}+ <item>+ <title>{{ a }}</title>+ <type>suggestion</type>+ </item>+ {% endfor %}+ {% endif %}</channel></rss>diff --git a/searx/webapp.py b/searx/webapp.pyindex b661e39d1..da2bf34a9 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -637,9 +637,13 @@ def index():response.headers.add('Content-Disposition', cont_disp)return responseelif output_format == 'rss':+ print(results)response_rss = render('opensearch_response_rss.xml',results=results,+ answers=result_container.answers,+ corrections=result_container.corrections,+ suggestions=result_container.suggestions,q=request.form['q'],number_of_results=number_of_results,base_url=get_base_url(),