requests
import requests

target_url = "https://httpbin.org/ip"
username = "your_proxy_username"
password = "your_proxy_password"
proxy = f"http://{username}:{password}@proxy.antsdata.com:40000"
proxies = {
    "http": proxy,
    "https": proxy
}

response = requests.get(target_url, proxies = proxies)
print(response.text)