logo

searx

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

opensearch.xml (1241B)


  1. <?xml version="1.0" encoding="utf-8"?>
  2. <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  3. <ShortName>{{ instance_name }}</ShortName>
  4. <Description>a privacy-respecting, hackable metasearch engine</Description>
  5. <InputEncoding>UTF-8</InputEncoding>
  6. <Image>{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}</Image>
  7. <LongName>searx metasearch</LongName>
  8. {% if opensearch_method == 'get' %}
  9. <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
  10. {% if autocomplete %}
  11. <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">
  12. <Param name="format" value="x-suggestions" />
  13. <Param name="q" value="{searchTerms}" />
  14. </Url>
  15. {% endif %}
  16. {% else %}
  17. <Url type="text/html" method="post" template="{{ host }}">
  18. <Param name="q" value="{searchTerms}" />
  19. </Url>
  20. {% if autocomplete %}
  21. <!-- TODO, POST REQUEST doesn't work -->
  22. <Url type="application/x-suggestions+json" method="get" template="{{ host }}autocompleter">
  23. <Param name="format" value="x-suggestions" />
  24. <Param name="q" value="{searchTerms}" />
  25. </Url>
  26. {% endif %}
  27. {% endif %}
  28. </OpenSearchDescription>