Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check if a proxy is dead in python

import os

ip_list = ['8.8.8.8:8888']
for ip in ip_list:
    response = os.popen(f"ping {ip}").read()
    if "Received = 4" in response:
        print(f"UP {ip} Ping Successful")
    else:
        print(f"DOWN {ip} Ping Unsuccessful")
 
PREVIOUS NEXT
Tagged: #check #proxy #dead #python
ADD COMMENT
Topic
Name
3+1 =