terryyin / translate-python

Online translation as a Python module & command line tool. No key, no authentication needed.
MIT License
724 stars 155 forks source link

requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.mymemory.translated.net', port=80): Max retries exceeded with url: /get?q=the+book+is+on+the+table&langpair=autodetect%7Czh #65

Open rasaworkshop opened 3 years ago

rasaworkshop commented 3 years ago

requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.mymemory.translated.net', port=80): Max retries exceeded with url: /get?q=the+book+is+on+the+table&langpair=autodetect%7Czh (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f37f41795d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

pnmartinez commented 2 years ago

Confirming this error exists as of 2022 for large number of requests (such us in large list comprehensions: [translate(x) for x in long_list].

Would be nice to expand the API with params to space out requests.