79799845

Date: 2025-10-26 05:37:33
Score: 0.5
Natty:
Report link

Here’s a working example that uses authentication directly in the proxy URL:

import requests
import json

username = "account"
password = "password"

proxies = {
    "http": f"http://{username}:{password}@gw.kindproxy.com:12000",
    "https": f"http://{username}:{password}@gw.kindproxy.com:12000",
}

def fetch(url):
    r = requests.get(url, proxies=proxies, timeout=30)
    try:
        data = r.json()
        print(json.dumps(data, indent=4))
    except Exception:
        print(r.text)

fetch("http://ipinfo.io")

This format works for both HTTP and SOCKS5 proxies (just change the protocol if needed).
It’s simple and doesn’t require extra authentication objects.

For more practical examples — including Python, Node.js, and curl — see:
kindproxy dot com / faq / code-examples

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user12644206