Update 酒店源.py

This commit is contained in:
frxz751113
2024-09-02 16:52:45 +08:00
committed by GitHub
parent 1d4fbd8ce8
commit 94515c660b
-1
View File
@@ -416,7 +416,6 @@ for url in urls:
# 从字典中获取'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)
print(f"要排除的ip行: {match}")
# 如果urlx包含'udp'或'rtp'字符串,则跳过当前循环的剩余部分
if 'udp' in urlx or 'rtp' in urlx:
print(f"Excluded line with keyword: {urlx}")