Update 网络收集.py
This commit is contained in:
@@ -107,6 +107,11 @@ simplified_text = converter.convert(traditional_text)
|
||||
with open('汇总.txt', 'w', encoding='utf-8') as file:
|
||||
file.write(simplified_text)
|
||||
|
||||
excluded_keywords = ['epg', 'mitv', 'udp', 'rtp', 'P2p', 'p2p', 'p3p', 'P2P', '新闻综合', 'P3p', '9930/qilu', 'shandong', 'goodiptv', '购物', '[', 'P3P', 'CCTV', '腔', '曲', '/pt', '//1', '/hls/', '春节']
|
||||
with open('汇总.txt', 'r', encoding='utf-8') as infile, open('汇总.txt', 'w', encoding='utf-8') as outfile:
|
||||
for line in infile:
|
||||
if not any(keyword in line for keyword in excluded_keywords):
|
||||
outfile.write(line)
|
||||
|
||||
|
||||
with open('汇总.txt', 'r', encoding="utf-8") as file:
|
||||
|
||||
Reference in New Issue
Block a user