You need the host, port, username and password of a proxy list. Create one in your dashboard and copy the details.
Send one request
import requests
proxy = "http://USER:PASS@ai.authilo.com:10000"
r = requests.get("https://api.ipify.org?format=json",
proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.json())The printed address is the IP the website sees. If it is not your own, the proxy is working.
Use SOCKS5 instead
Install the SOCKS extra (pip install "requests[socks]") and switch the scheme. Use socks5h so that DNS lookups also go through the proxy.
proxy = "socks5h://USER:PASS@ai.authilo.com:10000"If it fails
- A timeout usually means the host or port is wrong.
- A 407 response means the username or password is wrong.
- Check your remaining data or the list expiry in the dashboard.