logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

opensearch_response_rss.xml (1155B)


  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <rss version="2.0"
  3. xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
  4. xmlns:atom="http://www.w3.org/2005/Atom">
  5. <channel>
  6. <title>Searx search: {{ q|e }}</title>
  7. <link>{{ base_url }}?q={{ q|e }}</link>
  8. <description>Search results for "{{ q|e }}" - searx</description>
  9. <opensearch:totalResults>{{ number_of_results }}</opensearch:totalResults>
  10. <opensearch:startIndex>1</opensearch:startIndex>
  11. <opensearch:itemsPerPage>{{ number_of_results }}</opensearch:itemsPerPage>
  12. <atom:link rel="search" type="application/opensearchdescription+xml" href="{{ base_url }}opensearch.xml"/>
  13. <opensearch:Query role="request" searchTerms="{{ q|e }}" startPage="1" />
  14. {% if error_message %}
  15. <item>
  16. <title>Error</title>
  17. <description>{{ error_message|e }}</description>
  18. </item>
  19. {% endif %}
  20. {% for r in results %}
  21. <item>
  22. <title>{{ r.title }}</title>
  23. <link>{{ r.url }}</link>
  24. <description>{{ r.content }}</description>
  25. {% if r.pubdate %}<pubDate>{{ r.pubdate }}</pubDate>{% endif %}
  26. </item>
  27. {% endfor %}
  28. </channel>
  29. </rss>