fixed issue from code cleanup

This commit is contained in:
mikhail 2025-03-01 22:11:22 -05:00
parent 8e8d8b3eda
commit 8bb438fce0

@ -25,11 +25,12 @@ GET_ACCESS_TOKEN_URL: Final[str] = (
GET_COUNTRIES_URL: Final[str] = ( GET_COUNTRIES_URL: Final[str] = (
"https://stats.ducunt.com/api/rest/v2/entrypoints/countries" "https://stats.ducunt.com/api/rest/v2/entrypoints/countries"
) )
"""URL API endpoint.""" """URL API endpoint to get countries."""
GET_ACCESS_PROXY_URL: Final[str] = ( GET_ACCESS_PROXY_URL: Final[str] = (
"https://api-pro.ducunt.com/rest/v1/security/tokens/accs-proxy" "https://api-pro.ducunt.com/rest/v1/security/tokens/accs-proxy"
) )
"""URL API to get proxies."""
# Get authentication token from proxy service # Get authentication token from proxy service
print("Getting 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() host_information_response: Any = reponse.json()
proxy_connection_string: str = ( 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) proxy_file.write(proxy_connection_string)