lushan88a / google_trans_new

A free and unlimited python API for google translate.
MIT License
393 stars 170 forks source link

google_new_transError: 404 (Not Found) from TTS API. Probable cause: Unknown #57

Open dalaba7046 opened 1 year ago

dalaba7046 commented 1 year ago

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

cergo666 commented 1 year ago

Fixed by me in https://github.com/lushan88a/google_trans_new/pull/58

jet10000 commented 1 year ago

Please release it to pypi

vincjess commented 1 year ago

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.

jyotirmay123 commented 1 year ago

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.

hipoglucido commented 1 year ago

just cloned this and I am getting this error. Any fixes?

SHIVAKARTHIK3 commented 1 year ago

Fixed by me in https://github.com/lushan88a/google_trans_new/pull/58

I didn't get it couldn't you help me out