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