more print
This commit is contained in:
parent
dedb60af1e
commit
d838166419
@ -188,11 +188,12 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
current_list = proxy_list.copy()
|
current_list = proxy_list.copy()
|
||||||
current = proxy_list.pop()
|
current = proxy_list.pop()
|
||||||
proxy_list = [current] + proxy_list
|
proxy_list = [current] + proxy_list
|
||||||
|
print(f'before head request, {src}')
|
||||||
try:
|
try:
|
||||||
resp = requests.head(src, allow_redirects=True, proxies=current.req, timeout=2)
|
resp = requests.head(src, allow_redirects=True, proxies=current.req, timeout=2)
|
||||||
if resp is not None:
|
if resp is not None:
|
||||||
src = resp.url
|
src = resp.url
|
||||||
print(src)
|
print(f'after head request, {src}')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user