lushan88a / google_trans_new

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

requests.exceptions.ConnectTimeout #59

Open constantxyh opened 1 year ago

constantxyh 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.ConnectTimeout: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /_/TranslateWebserverUi/data/batchexecute (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000001CC5DB05348>, 'Connection to translate.google.com timed out. (connect timeout=5)'))

i have update the constant.py and google_trans_new.py.

Jaylen-Lee commented 9 months ago

same with you