From 4dc5ca76f7bbc0c7385d64578e500c65535f96d2 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Thu, 15 Aug 2024 08:46:54 +0800 Subject: [PATCH] =?UTF-8?q?Update=20iptv=E6=B5=81=E7=95=85=E5=BA=A6?= =?UTF-8?q?=E6=A3=80=E6=B5=8B.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/iptv流畅度检测.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py/iptv流畅度检测.py b/py/iptv流畅度检测.py index e1695c7..3b01060 100644 --- a/py/iptv流畅度检测.py +++ b/py/iptv流畅度检测.py @@ -36,7 +36,9 @@ urls = [ "https://fofa.info/result?qbase64=c2VydmVyPSJHWF9PUyAxLjAiICYmIHJlZ2lvbj0i5bm%2F5LicIg%3D%3D",#server="GX_OS 1.0" && region="广东" "https://fofa.info/result?qbase64=IlpIR1hUViIgJiYgcmVnaW9uPSJndWFuZ2Rvbmci",#广东 "https://fofa.info/result?qbase64=IlpIR1hUViIgJiYgcmVnaW9uPSJIdW5hbiI%3D",#湖南 - "https://fofa.info/result?qbase64=IlpIR1hUViIgJiYgcmVnaW9uPSJIZW5hbiI%3D",#河南# + "https://fofa.info/result?qbase64=IlpIR1hUViIgJiYgcmVnaW9uPSJIZW5hbiI%3D",#server="nginx" + "https://fofa.info/result?qbase64=c2VydmVyPSJHWF9PUyAxLjAi",#server="GX_OS 1.0" + "https://fofa.info/result?qbase64=c2VydmVyPSJuZ2lueCI%3D",#河南# "https://fofa.info/result?qbase64=IlpIR1hUViIgJiYgcmVnaW9uPSJoZWJlaSI%3D",#河北# ] #定义网址替换规则 @@ -57,7 +59,8 @@ def modify_urls(url): def is_url_accessible(url): try: response = requests.get(url, timeout=1) #////////////////// - if response.status_code == 200: + #if response.status_code == 200: + if 200 <= response.status_code <= 401: return url except requests.exceptions.RequestException: pass