Birkaç ay önce, Fransızca bir metni İngilizce'ye çevirmek için Python'un goslate
paketini kullandım.Python: Goslate çeviri isteği "503: Hizmet Kullanılamıyor" değerini döndürür
import goslate
gs = goslate.Goslate()
print gs.translate('hello world', 'de')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Python27\lib\site-packages\goslate.py", line 389, in translate
return _unwrapper_single_element(self._translate_single_text(text, target_language, source_language))
File "c:\Python27\lib\site-packages\goslate.py", line 317, in _translate_single_text
results = list(self._execute(make_task(i) for i in split_text(text)))
File "c:\Python27\lib\site-packages\goslate.py", line 200, in _execute
yield each()
File "c:\Python27\lib\site-packages\goslate.py", line 315, in <lambda>
return lambda: self._basic_translate(text, target_language, source_lauguage)[0]
File "c:\Python27\lib\site-packages\goslate.py", line 241, in _basic_translate
response_content = self._open_url(url)
File "c:\Python27\lib\site-packages\goslate.py", line 178, in _open_url
response = self._opener.open(request, timeout=self._TIMEOUT)
File "c:\Python27\lib\urllib2.py", line 437, in open
response = meth(req, response)
File "c:\Python27\lib\urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "c:\Python27\lib\urllib2.py", line 469, in error
result = self._call_chain(*args)
File "c:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "c:\Python27\lib\urllib2.py", line 656, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "c:\Python27\lib\urllib2.py", line 437, in open
response = meth(req, response)
File "c:\Python27\lib\urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "c:\Python27\lib\urllib2.py", line 475, in error
return self._call_chain(*args)
File "c:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "c:\Python27\lib\urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 503: Service Unavailable
herkes goslate
ne biliyor mu: yapmaya çalıştığım zaman bu nedenle bu sabah olsa da, hizmet bir hata verdi? İyileştirilmişse, bir API çağrısı aracılığıyla Fransızca'ya İngilizce'yi çevirmek için goslate
paketine uygun alternatifler var mı?
Çok teşekkürler! Az önce pip kurdum -U goslate 've o da beni oraya aldı. Tekrar teşekkürler! – duhaime
Yine düşüyor gibi görünüyor. En azından güvenilmez olarak adlandırılabilir: S – gabn88
@ gabn88 Lanet adam, lanet olsun. Bunu yıllardır kullanıyorum! Bu noktada Goslate'in ne olduğunu hatırlamıyorum bile. – Radu