diff --git a/py/网络收集.py b/py/网络收集.py index a93bb17..7888eff 100644 --- a/py/网络收集.py +++ b/py/网络收集.py @@ -24,53 +24,50 @@ from urllib.parse import urlparse from translate import Translator # 导入Translator类,用于文本翻译 # 定义txt文件的URL列表 urls = [ - 'https://github.com/hanhan8127/TVBox/blob/main/live.txt', 'https://dimaston.github.io/live.m3u', #假m3u - 'https://gitlab.com/tvtg/vip/-/raw/main/log.txt', - 'https://cdn05042023.gitlink.org.cn/api/v1/repos/xuanbei/tv/raw/live.txt' 'http://rihou.cc:555/gggg.nzk' - 'https://raw.githubusercontent.com/ssili126/tv/main/itvlist.txt', - 'https://raw.githubusercontent.com/Supprise0901/TVBox_live/main/live.txt', - 'https://raw.githubusercontent.com/Guovin/TV/gd/result.txt', - 'https://m3u.ibert.me/txt/fmml_ipv6.txt', - 'https://m3u.ibert.me/txt/ycl_iptv.txt', - 'https://m3u.ibert.me/txt/y_g.txt', - 'https://m3u.ibert.me/txt/j_home.txt', - 'https://raw.githubusercontent.com/gaotianliuyun/gao/master/list.txt', - 'https://gitee.com/xxy002/zhiboyuan/raw/master/zby.txt', - 'https://raw.githubusercontent.com/mlvjfchen/TV/main/iptv_list.txt', - 'https://raw.githubusercontent.com/fenxp/iptv/main/live/ipv6.txt', - 'https://raw.githubusercontent.com/fenxp/iptv/main/live/tvlive.txt', - 'https://raw.githubusercontent.com/zwc456baby/iptv_alive/master/live.txt', - 'https://gitlab.com/p2v5/wangtv/-/raw/main/lunbo.txt', - 'https://raw.githubusercontent.com/PizazzGY/TVBox/main/live.txt', - 'https://gitcode.net/MZ011/BHJK/-/raw/master/BHZB1.txt', - 'http://47.99.102.252/live.txt', - 'http://ttkx.live:55/lib/kx2024.txt', - 'https://raw.githubusercontent.com/vbskycn/iptv/master/tv/iptv4.txt', + 'https://raw.githubusercontent.com/gaotianliuyun/gao/master/list.txt', #暂时保留 'http://117.72.68.25:9230/latest.txt', - 'http://xhztv.top/v6.txt', - 'https://tvkj.top/tvlive.txt', - 'https://raw.githubusercontent.com/junge3333/juds6/main/yszb1.txt', - 'https://raw.githubusercontent.com/Fairy8o/IPTV/main/PDX-V4.txt', - 'https://gitlab.com/p2v5/wangtv/-/raw/main/wang-tvlive.txt', + 'http://ttkx.live:55/lib/kx2024.txt', 'https://raw.githubusercontent.com/kimwang1978/tvbox/main/%E5%A4%A9%E5%A4%A9%E5%BC%80%E5%BF%83/lives/%E2%91%AD%E5%BC%80%E5%BF%83%E7%BA%BF%E8%B7%AF.txt', - 'https://raw.githubusercontent.com/gdstchdr1/IPTV/main/bc.txt', - 'https://raw.githubusercontent.com/lalifeier/IPTV/main/txt/IPTV.txt', - 'https://raw.githubusercontent.com/yoursmile66/TVBox/main/live.txt', - 'https://raw.githubusercontent.com/pxiptv/live/main/iptv.txt', - 'https://notabug.org/vnjd/yydu/raw/master/yyfug.txt', - 'https://pan.beecld.com/f/OXMcA/%E6%98%A5%E8%B5%A2%E5%A4%A9%E4%B8%8B.txt', - 'http://kxrj.site:55/lib/kx2024.txt', - 'https://raw.githubusercontent.com/yuanzl77/IPTV/main/live.txt', - 'https://wzsvip.github.io/ipv4.txt', - 'http://wz.42web.io/ipv4.txt', - 'http://mywlkj.ddns.net:5212/f/EErCL/%E5%8F%B0%E6%B9%BE%E7%94%B5%E8%A7%86TV.txt', - 'http://yuhuahx.com/dsj66.txt', - 'https://raw.gitcode.com/xiaoqi719/yingshi/raw/main/zhibo.txt', - 'http://xhztv.top/tvlive.txt', - 'https://raw.githubusercontent.com/Andreayoo/ming/main/IPTV.txt', - 'http://gg.gg/cctvgg' + 'https://raw.githubusercontent.com/Fairy8o/IPTV/main/PDX-V4.txt', + 'http://gg.gg/cctvgg', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '' ] # 合并文件的函数 def merge_txt_files(urls, output_filename='汇总.txt'): @@ -297,7 +294,7 @@ import re import os # 定义一个包含所有要排除的关键词的列表 excluded_keywords = [ - 'epg', 'mitv', 'udp', 'rtp', 'P2p', 'p2p', 'p3p', 'P2P', '/livednow', 'P3p', '购物', 'goodiptv', '[', '/hls/', '/tsfile/', 'P3P', '/bfgd/', '腔', '曲', '/zy.', '/xgj.', '春节' + 'epg', 'mitv', 'udp', 'rtp', 'P2p', 'p2p', 'p3p', 'P2P', '/livednow', 'P3p', '购物', 'goodiptv', '[', 'P3P', '/bfgd/', '腔', '曲', '/zy.', '/xgj.', '春节' ] # 定义一个包含所有要提取的关键词的列表