fresh-proxy-list
fresh-proxy-list copied to clipboard
HTTPS proxy validity
Hi Vakhov,
Thanks for your efforts to make a comprehensive working proxies repo! I'm trying to check working https proxies like this:
import requests
url = "https://raw.githubusercontent.com/vakhov/fresh-proxy-list/refs/heads/master/https.txt"
proxies = requests.get(url).text.splitlines()
for proxy in proxies:
try:
response = requests.get(r"https://httpbin.org/ip", proxies={"https": proxy})
print(response.text)
except Exception as e:
print(e)
Sadly it seems that most of the http proxies have ConnectionTimoutError or OSError (Tunnel conection failed: 403 Forbidden) when checked against that site. How do you test these proxies to check that their valid and working? I'm curious since I'm working on a project to learn ho proxies work for connections and I'm a bit confused on how a proxy can be valid but not working against a site that seems quite soft on proxy limitation.
Thanks for your time.
use unfx proxy checker