diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2017-01-20 23:56:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-20 23:56:50 +0100 |
| commit | 3a57a1a0d096f9b15eab14c65c9c2bab432097d5 (patch) | |
| tree | c1e5ab56359ed3f23a17e6721cae1c4fbf6d88af /searx/templates/__common__/opensearch_response_rss.xml | |
| parent | 57149661e4f90e5ad3a9a4c36bb5f31a1c7ec6aa (diff) | |
| parent | 15eef0ebdb15af80c026302bef250dc7f4417951 (diff) | |
Merge pull request #832 from dalf/input_check
Input check
Diffstat (limited to 'searx/templates/__common__/opensearch_response_rss.xml')
| -rw-r--r-- | searx/templates/__common__/opensearch_response_rss.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/searx/templates/__common__/opensearch_response_rss.xml b/searx/templates/__common__/opensearch_response_rss.xml new file mode 100644 index 000000000..32c42e7c7 --- /dev/null +++ b/searx/templates/__common__/opensearch_response_rss.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0" + xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" + xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>Searx search: {{ q|e }}</title> + <link>{{ base_url }}?q={{ q|e }}</link> + <description>Search results for "{{ q|e }}" - searx</description> + <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults> + <opensearch:startIndex>1</opensearch:startIndex> + <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage> + <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/> + <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" /> + {% if error_message %} + <item> + <title>Error</title> + <description>{{ error_message|e }}</description> + </item> + {% endif %} + {% for r in results %} + <item> + <title>{{ r.title }}</title> + <link>{{ r.url }}</link> + <description>{{ r.content }}</description> + {% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %} + </item> + {% endfor %} + </channel> +</rss> |