From 8bb438fce07eaca985f70321c63546a6f569b9ee Mon Sep 17 00:00:00 2001 From: mikhail Date: Sat, 1 Mar 2025 22:11:22 -0500 Subject: [PATCH] fixed issue from code cleanup --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index c3e5575..c280560 100644 --- a/main.py +++ b/main.py @@ -25,11 +25,12 @@ GET_ACCESS_TOKEN_URL: Final[str] = ( GET_COUNTRIES_URL: Final[str] = ( "https://stats.ducunt.com/api/rest/v2/entrypoints/countries" ) -"""URL API endpoint.""" +"""URL API endpoint to get countries.""" GET_ACCESS_PROXY_URL: Final[str] = ( "https://api-pro.ducunt.com/rest/v1/security/tokens/accs-proxy" ) +"""URL API to get proxies.""" # Get authentication token from proxy service print("Getting authentication token from proxy service") @@ -105,7 +106,7 @@ with Path("proxies").open("w", encoding="utf-8") as proxy_file: host_information_response: Any = reponse.json() proxy_connection_string: str = ( - f"http://{host.signature}:1@{host.ip}:{host.port}\n" + f"http://{host_information_response['value']}:1@{host.ip}:{host.port}\n" ) proxy_file.write(proxy_connection_string)