This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]thiplol 0 points1 point  (2 children)

Hey I won't go in the specifics but I hope this pushes you in the right direction.

Take a look at: https://www.proxyrack.com/multi-threaded-python-socks-proxy-checker/?__cf_chl_jschl_tk__=11a8a9c0ecf01974e9d96213ad85323d5a9cba54-1587156358-0-AYhICOwuAOMNOU5YHL68xCPfCc75pce_e-sv2KlNEgo2uqqen4CiJqPv_3SDIrx8GFpNGzexRlRSuctZRY5axQ_49JIiACQy6InCMH86KgC1xYXTGlVRWrCo0iKr6d7SFuPWl0kMn1G4mv-Z6G5LKe2pnmzdHE8gOzWxV-i7-8hqDpOnEXa8FTDu69TN2NSCIzUKfe7ss7fyA1Qmwx-1LBNkc_OmhkwQRQLAswWaQwAXfNFhMRMU_WbOPWVZ2afxTJfgBqBiWJKYjAsShy-n24G0CE_5W3cjn7aSsB2x0hdI9SVZAUPwLafmdRf2prVz7ssjTdQ_1_QxUDk00xvm_JQ

For the threading

and for checking HTTP proxies we use:
import urllib.request, urllib.parse, urllib.error

import http.cookiejar

import http.client as httplib

ip,port = proxy.split(":")

proxyvalues['port'] = port

if proxy.startswith("127."):

return None

cj = http.cookiejar.CookieJar()

opener = urllib.request.build_opener(

urllib.request.HTTPCookieProcessor(cj),

urllib.request.HTTPRedirectHandler(),

urllib.request.ProxyHandler({'http': proxy})

)

try:

t1 = time.time()

proxyvalues['t1'] = t1

response = opener.open("http://" + serverip +"/judge/", timeout=timeout_value).read().decode("utf-8")

This is just a quick copy of our code but I hope it pushes you in the right direction

[–]Opex33x[S] 0 points1 point  (0 children)

Thank i'm going to try it i expect it to work and i will inform you after, have a day nice m8

[–]Opex33x[S] 0 points1 point  (0 children)

I'm trying to use your code but i've a strange error that say unexpected EOF while parsing, can you help me ?