Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [alucard@arch ~/Downloads]$ python -m srtranslator film.srt -i en -o hu
- Traceback (most recent call last):
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
- conn = connection.create_connection(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/util/connection.py", line 95, in create_connection
- raise err
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/util/connection.py", line 85, in create_connection
- sock.connect(sa)
- ConnectionRefusedError: [Errno 111] Connection refused
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
- httplib_response = self._make_request(
- ^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 386, in _make_request
- self._validate_conn(conn)
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
- conn.connect()
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connection.py", line 358, in connect
- self.sock = conn = self._new_conn()
- ^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
- raise NewConnectionError(
- urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f0a18b13750>: Failed to establish a new connection: [Errno 111] Connection refused
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/alucard/.local/lib/python3.11/site-packages/requests/adapters.py", line 489, in send
- resp = conn.urlopen(
- ^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 787, in urlopen
- retries = retries.increment(
- ^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.us-proxy.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0a18b13750>: Failed to establish a new connection: [Errno 111] Connection refused'))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/alucard/.local/lib/python3.11/site-packages/fp/fp.py", line 32, in get_proxy_list
- page = requests.get(self.__website(repeat))
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/requests/api.py", line 73, in get
- return request("get", url, params=params, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/requests/api.py", line 59, in request
- return session.request(method=method, url=url, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/requests/sessions.py", line 587, in request
- resp = self.send(prep, **send_kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/requests/sessions.py", line 701, in send
- r = adapter.send(request, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/requests/adapters.py", line 565, in send
- raise ConnectionError(e, request=request)
- requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.us-proxy.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0a18b13750>: Failed to establish a new connection: [Errno 111] Connection refused'))
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "<frozen runpy>", line 198, in _run_module_as_main
- File "<frozen runpy>", line 88, in _run_code
- File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/__main__.py", line 107, in <module>
- translator = builtin_translators[args.translator](**translator_args)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/translators/deepl_scrap.py", line 62, in __init__
- self._rotate_proxy()
- File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/translators/deepl_scrap.py", line 88, in _rotate_proxy
- proxy = create_proxy()
- ^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/srtranslator/translators/selenium_utils.py", line 27, in create_proxy
- proxy = FreeProxy(country_id=country_id).get()
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/fp/fp.py", line 68, in get
- proxy_list = self.get_proxy_list(repeat)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/alucard/.local/lib/python3.11/site-packages/fp/fp.py", line 35, in get_proxy_list
- raise FreeProxyException(
- fp.errors.FreeProxyException: Request to https://www.us-proxy.org failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement