From d8381664194c7cb1ee5f2b7c85088958cd1800bd Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 13 May 2021 08:09:46 +0200 Subject: [PATCH] more print --- stream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stream.py b/stream.py index aaa8a36..bcff1f6 100755 --- a/stream.py +++ b/stream.py @@ -188,11 +188,12 @@ 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}') try: resp = requests.head(src, allow_redirects=True, proxies=current.req, timeout=2) if resp is not None: src = resp.url - print(src) + print(f'after head request, {src}') except Exception as e: print(e) else: