Upon first running my code I revived this error attempting to connect to "api-free.deepl.com" which is included on the free whitelist :
Traceback (most recent call last):
File "/home/Jaxkey/.local/lib/python3.9/site-packages/deepl/http_client.py", line 168, in _internal_request
response = self._session.send(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api-free.deepl.com', port=443): Max retries exceeded with url: /v2/translate (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection ob
ject at 0x7f6d709f60a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
On this guide it describes manually configuring a proxy connection which you can do through DeepL's API using
deepl.Translator('API KEY', proxy='PROXY')
so I figured that may solve the issue. What should I actually put in for the PythonAnywhere proxy? I see it says "proxy.server:3128" in the guide, however I don't know what that means or how to implement it correctly.
Thank you for the help!