Update 酒店源.py

This commit is contained in:
frxz751113
2024-09-02 18:36:32 +08:00
committed by GitHub
parent 8f43ebc1dc
commit 43fcc01178
+1 -1
View File
@@ -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