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.
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.