Open dalaba7046 opened 1 year ago
Fixed by me in https://github.com/lushan88a/google_trans_new/pull/58
Please release it to pypi
I wish that it was updated in pypi, but for now you can also just download constant.py and google_trans_new.py and add them into your project.
I wish that it was updated in pypi, but for now you can also just download constant.py and google_trans_new.py and add them into your project.
Wow, that's the easiest solution without proxy stuff. May they release this new version to PYPI soon.
just cloned this and I am getting this error. Any fixes?
Fixed by me in https://github.com/lushan88a/google_trans_new/pull/58
I didn't get it couldn't you help me out
test code:
from google_trans_new import google_translator
translator = google_translator() translate_text = translator.translate('สวัสดีจีน',lang_tgt='en') print(translate_text)
====================================== error:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://translate.google.cn/_/TranslateWebserverUi/data/batchexecute
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
google_trans_new.google_trans_new.google_new_transError: 404 (Not Found) from TTS API. Probable cause: Unknown