From 43fcc011788a9fb6d3fce8de864a2cdf0d5b79e1 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Mon, 2 Sep 2024 18:36:32 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E9=85=92=E5=BA=97=E6=BA=90.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/酒店源.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/酒店源.py b/py/酒店源.py index 1f699da..b7dff25 100644 --- a/py/酒店源.py +++ b/py/酒店源.py @@ -415,7 +415,7 @@ for url in urls: name = item.get('name') # 从字典中获取'url'键的值,如果键不存在则返回None urlx = item.get('url') - match = re.search(r'182\.117\.136\.\d{1,3}\.\d{1,3}\:\d{1,5}|192\.168\.\d{1,3}\.\d{1,3}\:\d{1,5}|10\.0\.0\.\d{1,3}\:\d{1,5}', urlx) + match = re.search(r'182\.117\.136\.\d{1,3}\:\d{1,5}|192\.168\.1\.\d{1,3}\:\d{1,5}|10\.0\.0\.\d{1,3}\:\d{1,5}', urlx) # 使用正则表达式判断 IP if match: continue