From e94f169303751ea0a3d325a671016a0891664421 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 13 May 2021 08:18:31 +0200 Subject: [PATCH] print proxy in loop --- stream.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stream.py b/stream.py index bcff1f6..8f8d30a 100755 --- a/stream.py +++ b/stream.py @@ -188,12 +188,11 @@ class MainHandler(tornado.web.RequestHandler): current_list = proxy_list.copy() current = proxy_list.pop() proxy_list = [current] + proxy_list - print(f'before head request, {src}') + print(current) try: resp = requests.head(src, allow_redirects=True, proxies=current.req, timeout=2) if resp is not None: src = resp.url - print(f'after head request, {src}') except Exception as e: print(e) else: