translate: switch to https

master
mutantmonkey 2016-03-06 14:36:41 -08:00
parent 984dba9b4b
commit 59e7cb32d6
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def translate(text, input='auto', output='en'):
output = web.quote(output.encode('utf-8'))
text = web.quote(text.encode('utf-8'))
result = web.get('http://translate.google.com/translate_a/t?' +
result = web.get('https://translate.google.com/translate_a/t?' +
('client=t&hl=en&sl=%s&tl=%s&multires=1' % (input, output)) +
('&otf=1&ssel=0&tsel=0&uptl=en&sc=1&text=%s' % text))