• We just launched and are currently in beta. Join us as we build and grow the community.

Proxy Python tool scrape and proxy checked

Fourever

Fan Subber
Divine
F Rep
0
0
0
Rep
0
F Vouches
0
0
0
Vouches
0
Posts
175
Likes
57
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 500 XP
ADD AN IMAGE HERE! [Not adding an image will result in removal]
Then remove these lines.
Download:
requests.get("https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt").text.split("\n")
for p in f:
prx = p.strip('\n').strip("\r")
list.append("http|"+prx)
f = requests.get("https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks4.txt").text.split("\n")
for p in f:
prx = p.strip('\n').strip("\r")
list.append("sock4|"+prx)
f = requests.get("https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks5.txt").text.split("\n")
for p in f:
prx = p.strip('\n').strip("\r")
list.append("sock5|"+prx)
def runc(proxys):
try:
if "http|" in proxys:
proxy = proxys.split("|")[1]
testing = requests.get('http://httpbin.org/ip', proxies={'http': 'https://'+proxy, 'https': 'https://'+proxy}, timeout=3).json()
print ('\033[1;32m Working | '+proxys)
open(luu,'a').write(proxy+'\n')
elif "sock4|" in proxys:
proxy = proxys.split("|")[1]
testing = requests.get('http://httpbin.org/ip', proxies={'socks4': 'socks4://'+proxy}, timeout=3).json()
print ('\033[1;32m Working | '+proxys)
open(luu,'a').write(proxy+'\n')
elif "sock5" in proxys:
proxy = proxys.split("|")[1]
testing = requests.get('http://httpbin.org/ip', proxies={'socks5': 'socks5://'+proxy}, timeout=3).json()
print ('\033[1;32m Working | '+proxys)
open(luu,'a').write(proxy+'\n')
except:
print ('\033[1;31m Time Out | '+proxys)
with concurrent.futures.ThreadPoolExecutor(max_workers=100) as executor:
executor.map(runc, list)
run()
 

435,899

314,152

314,161

Top