@@ -9,16 +9,12 @@
9 @parse url, title, content
9 @parse url, title, content
12−from urlparse import urljoin
14from cgi import escape
12from cgi import escape
15−from searx.engines.xpath import extract_text
16from searx.utils import is_valid_lang
13from searx.utils import is_valid_lang
18categories = ['general']
15categories = ['general']
19−url = 'http://api.mymemory.translated.net/get?q={query}' \
16+url = u'http://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}'
20− '&langpair={from_lang}|{to_lang}{key}'
21−web_url = 'http://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'
17+web_url = u'http://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'
22weight = 100
18weight = 100
24parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) (.{2,})$', re.I)
20parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) (.{2,})$', re.I)