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] unicode urls
Adam Tauber3144ec1d5926
diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.pyindex 5de6c5b98..9765d5f60 100644--- a/searx/engines/dictzone.py+++ b/searx/engines/dictzone.py@@ -13,11 +13,10 @@ import refrom urlparse import urljoinfrom lxml import htmlfrom cgi import escape-from searx.engines.xpath import extract_textfrom searx.utils import is_valid_langcategories = ['general']-url = 'http://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'+url = u'http://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'weight = 100parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I)diff --git a/searx/engines/translated.py b/searx/engines/translated.pyindex 3a077ae8e..02047bc93 100644--- a/searx/engines/translated.py+++ b/searx/engines/translated.py@@ -9,16 +9,12 @@@parse url, title, content"""import re-from urlparse import urljoin-from lxml import htmlfrom cgi import escape-from searx.engines.xpath import extract_textfrom searx.utils import is_valid_langcategories = ['general']-url = 'http://api.mymemory.translated.net/get?q={query}' \- '&langpair={from_lang}|{to_lang}{key}'-web_url = 'http://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'+url = u'http://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}'+web_url = u'http://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'weight = 100parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) (.{2,})$', re.I)