def test_proxy(url): try: test_url = f"url/?q=https://httpbin.org/ip" r = requests.get(test_url, timeout=5) if r.status_code == 200 and "origin" in r.text: return url except: pass return None
If you simply want to:
def test_proxy(url): try: test_url = f"url/?q=https://httpbin.org/ip" r = requests.get(test_url, timeout=5) if r.status_code == 200 and "origin" in r.text: return url except: pass return None
If you simply want to: