requests.exceptions.ConnectionError:SOCKSHTTPSConnectionPool(host='www.Example.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSHTTPSConnection object at 0x0000029BDEB0B550>: Failed to establish a new connection: Connection closed unexpectedly'))```
````````try: global x x += 1 proxyfile4 = open("socks4_proxies.txt", "r") socks4 = proxyfile4.readlines() proxies = { 'https': 'socks4://' + socks4[x], } url = (socks4[x]) r = requests.get("https://google.com", proxies=proxies, timeout=5) lif r.status_code == 200: a += 1 rr() valid = open("Socks4_Alive.txt", "a+") except TimeoutError: e += 1 rr() except ConnectionError: e += 1 rr() except IndexError: print(Fore.LIGHTGREEN_EX + "Done")<pre> What I have tried: I have tryed to use other/better proxies.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)