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)