Add files via upload

This commit is contained in:
alantang 2024-11-19 16:17:18 +08:00 committed by GitHub
parent ea18c10aff
commit 05f4df3bd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 11647 additions and 0 deletions

37
json/live2cms.json Normal file
View file

@ -0,0 +1,37 @@
[
{
"name": "GitHub-TXT",
"url": "https://ghproxy.net/https://raw.githubusercontent.com/ssili126/tv/main/itvlist.txt",
"img": "http://www.weibomn.com/uploadfile/image/20240622/5bf3ad336af04dc36b49ecd4a909882c.jpg"
},
{
"name": "GitHub-M3U",
"url": "https://ghproxy.net/https://raw.githubusercontent.com/ssili126/tv/main/itvlist.m3u",
"img": "http://www.weibomn.com/uploadfile/image/20240622/5bf3ad336af04dc36b49ecd4a909882c.jpg"
},
{
"name": "CNTV",
"url": "./live_cntv.txt",
"img": ""
},
{
"name": "范冰冰-V6",
"url": "https://live.fanmingming.com/tv/m3u/ipv6.m3u",
"img": "https://bkimg.cdn.bcebos.com/pic/a044ad345982b2b7d0a2e28059e3dcef76094b362d6a"
},
{
"name": "1905",
"url": "./live_1905.txt",
"img": "https://image11.m1905.cn/uploadfile/2022/0510/thumb_1_285_100_20220510030520666149.jpg"
},
{
"name": "测试1(随时失效)",
"url": "https://gitee.com/svcd2008/tv/raw/master/430.txt",
"img": "./lives.jpg"
},
{
"name": "测试2(随时失效)",
"url": "https://gitee.com/flying-snow-wu/tv/raw/main/itvlist.txt",
"img": ""
}
]

2
json/live_1905.txt Normal file
View file

@ -0,0 +1,2 @@
央视频道,#genre#
CCTV6,https://www.1905.com/cctv6/live/?index

62
json/live_cntv.txt Normal file
View file

@ -0,0 +1,62 @@
央视频道,#genre#
CCTV4K,https://www.yangshipin.cn/tv/home?pid=600002264
CCTV1,https://www.yangshipin.cn/tv/home?pid=600001859
CCTV2,https://www.yangshipin.cn/tv/home?pid=600001800
CCTV3(VIP),https://www.yangshipin.cn/tv/home?pid=600001801
CCTV4,https://www.yangshipin.cn/tv/home?pid=600001814
CCTV5(限免),https://www.yangshipin.cn/tv/home?pid=600001818
CCTV5+(限免),https://www.yangshipin.cn/tv/home?pid=600001817
CCTV6(VIP),https://www.yangshipin.cn/tv/home?pid=600001802
CCTV7,https://www.yangshipin.cn/tv/home?pid=600004092
CCTV8(VIP),https://www.yangshipin.cn/tv/home?pid=600001803
CCTV9,https://www.yangshipin.cn/tv/home?pid=600004078
CCTV10,https://www.yangshipin.cn/tv/home?pid=600001805
CCTV11,https://www.yangshipin.cn/tv/home?pid=600001806
CCTV12,https://www.yangshipin.cn/tv/home?pid=600001807
CCTV13,https://www.yangshipin.cn/tv/home?pid=600001811
CCTV14,https://www.yangshipin.cn/tv/home?pid=600001809
CCTV15,https://www.yangshipin.cn/tv/home?pid=600001815
CCTV16-HD,https://www.yangshipin.cn/tv/home?pid=600098637
CCTV16(4K(VIP),https://www.yangshipin.cn/tv/home?pid=600099502
CCTV17,https://www.yangshipin.cn/tv/home?pid=600001810
CGTN,https://www.yangshipin.cn/tv/home?pid=600014550
CGTN法语频道,https://www.yangshipin.cn/tv/home?pid=600084704
CGTN俄语频道,https://www.yangshipin.cn/tv/home?pid=600084758
CGTN阿拉伯语频道,https://www.yangshipin.cn/tv/home?pid=600084782
CGTN西班牙语频道,https://www.yangshipin.cn/tv/home?pid=600084744
CGTN外语纪录频道,https://www.yangshipin.cn/tv/home?pid=600084781
CCTV风云剧场频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099658
CCTV第一剧场频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099655
CCTV怀旧剧场频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099620
CCTV世界地理频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099637
CCTV风云音乐频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099660
CCTV兵器科技频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099649
CCTV风云足球频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099636
CCTV高尔夫·网球频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099659
CCTV女性时尚频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099650
CCTV央视文化精品频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099653
CCTV央视台球频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099652
CCTV电视指南频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099656
CCTV卫生健康频道(VIP),https://www.yangshipin.cn/tv/home?pid=600099651
卫视频道,#genre#
北京卫视,https://www.yangshipin.cn/tv/home?pid=600002309
江苏卫视,https://www.yangshipin.cn/tv/home?pid=600002521
东方卫视,https://www.yangshipin.cn/tv/home?pid=600002483
浙江卫视,https://www.yangshipin.cn/tv/home?pid=600002520
湖南卫视,https://www.yangshipin.cn/tv/home?pid=600002475
湖北卫视,https://www.yangshipin.cn/tv/home?pid=600002508
广东卫视,https://www.yangshipin.cn/tv/home?pid=600002485
广西卫视,https://www.yangshipin.cn/tv/home?pid=600002509
黑龙江卫视,https://www.yangshipin.cn/tv/home?pid=600002498
海南卫视,https://www.yangshipin.cn/tv/home?pid=600002506
重庆卫视,https://www.yangshipin.cn/tv/home?pid=600002531
深圳卫视,https://www.yangshipin.cn/tv/home?pid=600002481
四川卫视,https://www.yangshipin.cn/tv/home?pid=600002516
河南卫视,https://www.yangshipin.cn/tv/home?pid=600002525
福建东南卫视,https://www.yangshipin.cn/tv/home?pid=600002484
贵州卫视,https://www.yangshipin.cn/tv/home?pid=600002490
江西卫视,https://www.yangshipin.cn/tv/home?pid=600002503
辽宁卫视,https://www.yangshipin.cn/tv/home?pid=600002505
安徽卫视,https://www.yangshipin.cn/tv/home?pid=600002532
河北卫视,https://www.yangshipin.cn/tv/home?pid=600002493
山东卫视,https://www.yangshipin.cn/tv/home?pid=600002513

BIN
json/lives.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

61
json/tokenm.json Normal file
View file

@ -0,0 +1,61 @@
{
"use_internal_storage":false,
"token":"",
"open_token":"",
"open_api_url":"get|https://adrive.xdow.net/oauth/access_token",
"oauth_client_id":"",
"oauth_client_secret":"",
"oauth_auth_url":"",
"oauth_refresh_url":"",
"thread_limit":32,
"is_vip":true,
"vip_thread_limit":10,
"vod_flags":"auto|4kz",
"quark_thread_limit":32,
"quark_is_vip":false,
"quark_vip_thread_limit":32,
"quark_flags":"auto|4kz",
"uc_thread_limit":0,
"uc_is_vip":false,
"uc_vip_thread_limit":0,
"uc_flags":"auto|4kz",
"thunder_thread_limit":2,
"thunder_is_vip":false,
"thunder_vip_thread_limit":2,
"thunder_flags":"4k|4kz|auto",
"aliproxy":"",
"aliproxy_url":"",
"proxy":"",
"danmu":true,
"quark_danmu":true,
"quark_cookie":"",
"uc_cookie":"",
"thunder_username":"",
"thunder_password":"",
"thunder_captchatoken":"",
"yd_auth":"",
"yd_thread_limit":4,
"yd_flags":"auto|4kz",
"yd_danmu":true,
"pikpak_username":"",
"pikpak_password":"",
"pikpak_flags":"4k|auto",
"pikpak_thread_limit":2,
"pikpak_vip_thread_limit":2,
"pikpak_proxy":"",
"pikpak_proxy_onlyapi":false,
"pikpak_danmu":true,
"wgcf_key":"",
"wgcf_key2":"",
"wgcf_ipport":"",
"wgcf_xray_url":"./xray.gz",
"wgcf_geoip_url":"./geoip.dat.gz",
"wgcf_json_url":"./wgcf.json",
"wgcf_vless_id":"",
"wgcf_vless_optname":"singapore.com:443",
"wgcf_vless_worker":"",
"wgcf_vless_path":"/?ed=2048",
"wgcf_vless_protocol":"vless",
"wgcf_vless_network":"ws",
"wgcf_vless_tls":false
}

52
json/tokenm.readme.txt Normal file
View file

@ -0,0 +1,52 @@
把zip文件解壓縮到安卓設備的/sdcard/easybox/drpy_dzlive
修改 json/tokenm.json并填寫必要的内容
特別提示發現影视壳并不能加载最新的jar如果遇到jar表現異常或者最新的jar承諾的功能改進沒有實現請清除播放殼app的緩存后强杀播放壳后再試清除方法1在殼app的設置裏點擊“緩存”清除方法2設備的應用管理中清除殼app的數據及緩存。
特别警告迅雷云盘限制极为严格不要尝试单token多用户异地使用或多线程使用随时可能封号。
可以透过配置中的“網盤及彈幕配置”的視頻源來實現快捷方便的獲取32位token及opentoken的功能。在“網盤及彈幕配置”中掃過任何一個OpenToken后會自動激活“轉存原畫”功能
提示如果遇到極速GO原畫反復快速報錯不一定是被封號可嘗試殺掉播放器重啓或重啓整個播放設備解決。
提示2如果遇到“轉存原畫”速度被限制在2M左右那麽請嘗試在阿里云盤APP裏退出登錄然後重新登錄然後刪除播放設備SD卡的TV目錄在播放器上重新掃碼登錄。
提示3zip包内預置的aliproxy從jar内的assets改爲zip内的aliproxy.gz可以減少jar包對播放器内存的消耗但因爲aliproxy.gz的釋出需要使用到殼上的proxy功能所以如果播放設備安裝了多個類似的播放器可能導致aliproxy釋放出錯或運行出錯。不要嘗試在同一個播放設備上運行多個播放殼也不要嘗試把本jar加載到同一個播放設備的不同播放殼上。
tokenm.json格式説明
{
"use_internal_storage":false, //如果播放設備比如某些智能電視機沒有SD卡讀寫權限則把本項目設置爲true可以正常處理緩存
"token":"這裏填寫阿里云盤的32位token也可以不填寫在播放阿里云盤内容時會彈出窗口點擊QrCode用阿里云盤app掃碼",
"open_token":"這裏填寫通過alist或其他openapi提供方申請的280位aliyun openapi token也可以不寫會自動隱藏轉存原畫",
"thread_limit":32, //這裏是阿里云盤的GO代理的并發協程數或java代理的并發綫程數若遇到賬號被限制并發數請將此數值改爲10
"is_vip":true, //是否是阿里云盤的VIP用戶設置為true后使用vip_thread_limit設置的數值來并發加速。如本設置項目不是true則自動隱藏“轉存原畫”
"vip_thread_limit":10, //這裏是阿里云盤的轉存原畫(OpenToken)并發綫程數若遇到賬號被限制并發數請將此數值改爲10
"quark_thread_limit":32, //這裏是夸克網盤GO代理的并發協程數或java代理的并發綫程數若遇到賬號被限制並發數請將此數值改爲10
"quark_vip_thread_limit":16, //這裏是夸克網盤設置quark_is_vip:true之後的并發綫程數若遇到賬號被限制并發數請將此數值改爲10
"quark_is_vip":false, //是否是夸克網盤的VIP用戶設置為true后綫程數受quark_vip_thread_limit控制
"vod_flags":"4k|4kz|auto", //這裏是播放阿里雲的畫質選項4k代表不轉存原畫GO原畫4kz代表轉存原畫,其他都代表預覽畫質,可選的預覽畫質包括qhd,fhd,hd,sd,ld
"quark_flags":"4kz|auto", //這裏是播放夸克網盤的畫質選項4kz代表轉存原畫GO原畫其他都代表轉碼畫質,可選的預覽畫質包括4k,2k,super,high,low,normal
"uc_thread_limit":0,
"uc_is_vip":false,
"uc_flags":"4kz|auto",
"uc_vip_thread_limit":0,
"thunder_thread_limit":0,
"thunder_is_vip":false,
"thunder_vip_thread_limit":0,
"thunder_flags":"4k|4kz|auto",
"aliproxy":"這裏填寫外部的加速代理,用於在盒子性能不夠的情況下,使用外部的加速代理來加速播放,可以不填寫",
"proxy":"這裏填寫用於科學上網的地址連接openapi或某些資源站可能會需要用到可以不填寫",
"open_api_url":"https://api.xhofe.top/alist/ali_open/token", //這是alist的openapi接口地址也可使用其他openapi提供商的地址。
"danmu":true,//是否全局開啓阿里云盤所有csp的彈幕支持聚合類CSP仍需單獨設置例如Wogg, Wobg
"quark_danmu":true,//是否全局開啓夸克網盤的所有csp的彈幕支持, 聚合類CSP仍需單獨設置例如Wogg, Wobg
"quark_cookie":"這裏填寫通過https://pan.quark.cn網站獲取到的cookie會很長全數填入即可。"
"uc_cookie":"這裏填寫通過https://drive.uc.cn網站登錄獲取的cookie",
"thunder_username":"這裏填入用戶名或手機號,如果是手機號,記得是類似'+86 139123457'這樣的格式,+86后有空格才對",
"thunder_password":"密碼",
"thunder_captchatoken":"首次使用迅雷網盤時需要使用app彈出的登陸地址去接碼登錄並獲取captchaToken具體方法參考alist網站的文檔:https://alist.nn.ci/zh/guide/drivers/thunder.html",
"pikpak_username":"PikPak網盤的用戶名",
"pikpak_password":"PikPak網盤的密碼",
"pikpak_flags":"4k|auto",
"pikpak_thread_limit":2,
"pikpak_vip_thread_limit":2,
"pikpak_proxy":"用於科學上網連接PikPak網盤的代理服務器地址",
"pikpak_proxy_onlyapi":false
}

4783
json/哔哩大全.json Normal file

File diff suppressed because it is too large Load diff

3980
json/哔哩教育.json Normal file

File diff suppressed because it is too large Load diff

18
json/夸克分享.json Normal file
View file

@ -0,0 +1,18 @@
{
"classes": [
{
"type_name": "花生十三",
"type_id": "8dd332256252"
},
{
"type_name": "食谱",
"type_id": "78414690490e"
},
{
"type_name": "体育",
"type_id": "25bf5b71edbb"
}
],
"cookie":"__puus=0d26f820dbe87c2ff7689eca16d33dbdAATbA+y7U6E45kIqf3tUJD3ubw3yiLFUneh7o2z7qsn/vNtt13XnX5nq24o8c1PFNiaRXf9lCjyU8a8OHOwiWUwyB2awYMF3Q3KeegYcdEvy8ND7sRa0vlDQ1nPIWdR0BZD52AXBQj5UBIy0E2yknnBf+bzag4ivcZLepQskKRVGJ8tlB7jy8sgOem4zOP0cxKCMZLmwUeeaKFzdCnlhqj9+;__pus=69d93c40091ac35657fcdad30c901d8fAATxYe3kuhbmWR/i/UY5HxwQQPHPfx2Y/oEUXCA5LbTk2cvg8UqI6jwVZs1vlK34HoJ6KsjzHygZE3SbMoQVW2g6;__kp=c9e05ec0-8574-11ef-8fbe-77ecc2a14af3"
}

84
json/采集.json Normal file
View file

@ -0,0 +1,84 @@
[
{
"name": "业余资源",
"url": "https://yyff.540734621.xyz",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "360资源",
"url": "https://360zy.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "豪华资源",
"url": "https://hhzyapi.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "速播资源",
"url": "https://subocaiji.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "红牛资源",
"url": "https://www.hongniuzy2.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "新浪资源",
"url": "https://api.xinlangapi.com",
"parse_url": "",
"api": "/xinlangapi.php/provide/vod/from/xlm3u8/",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "飞刀资源",
"url": "http://www.feidaozy.com",
"parse_url": "",
"cate_exclude": "^电影$|^电视剧$|^综艺$|^动漫$"
},
{
"name": "黑木耳资源",
"url": "https://www.heimuer.tv",
"parse_url": "",
"cate_exclude": "^电影$|^电视剧$|^综艺$|^动漫$"
},
{
"name": "iku喵",
"url": "http://caiji.ikum.cc:8099",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "暴风资源",
"url": "https://bfzyapi.com",
"parse_url": "",
"searchable": 0,
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "量子资源",
"url": "https://cj.lziapi.com",
"parse_url": "",
"searchable": 0,
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "非凡资源",
"url": "http://cj.ffzyapi.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯"
},
{
"name": "乐视资源",
"url": "https://leshiapi.com",
"parse_url": "https://leshivideoplayurl.com/?url=",
"cate_exclude": "",
"api": "/api.php/provide/vod/at/json/"
}
]

537
json/采集[zy].json Normal file
View file

@ -0,0 +1,537 @@
[
{
"name": "华为吧",
"url": "https://huawei8.live",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "樱花|点播",
"url": "https://m3u8.apiyhzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "艾旦影视",
"url": "http://lovedan.net",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "闪电☆资源",
"url": "https://sdzyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "🈵成人影视4",
"url": "https://apittzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "📛挺好┃光速.云播",
"url": "https://api.guangsuapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "📛挺好┃卧龙.云播",
"url": "https://collect.wolongzyw.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "U酷资源",
"url": "https://api.ukuapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "紅牛資源",
"url": "http://hongniuzy2.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api.php/provide/vod/from/hnm3u8/"
},
{
"name": "天空资源",
"url": "https://m3u8.tiankongapi.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api.php/provide/vod/from/tkm3u8/"
},
{
"name": "老鸭资源|AV",
"url": "https://api.apilyzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "金鹰资源",
"url": "https://jyzyapi.com",
"parse_url": "",
"cate_exclude": "",
"api": "/provide/vod/"
},
{
"name": "百度|点播",
"url": "https://api.apibdzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "量子资源",
"url": "http://cj.lziapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "森林资源|AV",
"url": "https://slapibf.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "奥斯卡资源",
"url": "https://aosikazy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "快车资源",
"url": "https://caiji.kczyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "♥155(直连)",
"url": "https://155api.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "草榴资源|AV",
"url": "https://www.caoliuzyw.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api.php/prodao/vod/"
},
{
"name": "💕越南(直连)",
"url": "https://vnzyz.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "精品资源|AV",
"url": "https://www.jingpinx.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "快av(FQ)",
"url": "https://kuaiavzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "成人16",
"url": "https://api.maozyapi.com",
"parse_url": "",
"cate_exclude": "",
"api": "/inc/apijson_vod.php/"
},
{
"name": "♥搞起(直连)",
"url": "https://caiji.gqjiexi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "★黄瓜(直连)",
"url": "https://www.avre06.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "辣椒资源|AV",
"url": "https://apilj.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "速博资源",
"url": "https://subocaiji.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "无尽资源",
"url": "https://api.wujinapi.me",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "📛挺好┃新浪.云播",
"url": "http://api.xinlangapi.com",
"parse_url": "",
"cate_exclude": "",
"api": "/xinlangapi.php/provide/vod/"
},
{
"name": "非凡资源",
"url": "http://cj.ffzyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "索尼|点播",
"url": "https://suoniapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "📛挺好┃天空.云播",
"url": "https://api.tiankongapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "快看资源",
"url": "https://kuaikan-api.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api.php/provide/vod/from/kuaikanyun/"
},
{
"name": "成人18+",
"url": "http://91md.me",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "玉兔资源",
"url": "https://apiyutu.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "火狐|点播",
"url": "https://hhzyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "黑木耳|点播",
"url": "https://www.heimuer.tv",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "华为吧",
"url": "https://hw8.live",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "魔都|点播",
"url": "https://caiji.moduapi.cc",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "最大|点播",
"url": "http://zuidazy.me",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "快看|点播",
"url": "https://www.kuaikan-api.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "1080资源库(切)",
"url": "https://api.1080zyku.com",
"parse_url": "",
"cate_exclude": "",
"api": "/inc/api_mac10.php/"
},
{
"name": "🈵成人影视5",
"url": "https://lbapi9.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api.php/provide/vod/at/json/"
},
{
"name": "️🔘皮革",
"url": "https://www.pgxdy.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api/json.php/"
},
{
"name": "AIvin|AV",
"url": "http://lbapiby.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api.php/provide/vod/at/json/"
},
{
"name": "飞速|点播",
"url": "https://www.feisuzyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "飘零|点播",
"url": "https://p2100.net",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "️🔘奶儿",
"url": "https://www.gdlsp.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api/json.php/"
},
{
"name": "八戒资源",
"url": "http://cj.bajiecaiji.com",
"parse_url": "",
"cate_exclude": "",
"api": "/inc/apijson_vod.php/"
},
{
"name": "KK写真资源|AV",
"url": "https://kkzy.me",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "️🔘番号",
"url": "http://fhapi9.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "易看资源",
"url": "https://api.yikanapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "360┃秒播┃采集",
"url": "https://360zy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "天翼|点播",
"url": "https://www.911ysw.top",
"parse_url": "",
"cate_exclude": "",
"api": "/tianyi.php/provide/vod/"
},
{
"name": "CK☆资源",
"url": "https://ckzy.me",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "狼友会资源",
"url": "https://api.lyhapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "️极速┃资源",
"url": "https://jszyapi.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api.php/provide/vod/at/json/"
},
{
"name": "鲨鱼资源|AV",
"url": "https://shayuapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "爱坤资源",
"url": "https://ikunzyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "奶香香|AV",
"url": "https://Naixxzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "无尽|点播",
"url": "https://api.wujinapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "最色资源|AV",
"url": "https://zszyw.top",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "虎牙资源",
"url": "https://www.huyaapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "官网|点播",
"url": "http://gwcms.cttv.vip",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "鸡坤资源",
"url": "https://jkunzyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "丫丫|点播",
"url": "https://cj.yayazy.net",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "42资源",
"url": "https://www.42.la",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "️🔘白嫖",
"url": "https://www.kxgav.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api/json.php/"
},
{
"name": "红牛",
"url": "https://www.hongniuzy2.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "暴风资源",
"url": "https://bfzyapi.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "色猫资源",
"url": "https://caiji.semaozy.net",
"parse_url": "",
"cate_exclude": "",
"api": "/inc/apijson_vod.php/"
},
{
"name": "湿乐园",
"url": "https://xxavs.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "奶香香资源",
"url": "https://naixxzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "️🔘雪人",
"url": "https://www.xrbsp.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api/json.php/"
},
{
"name": "黄瓜资源|AV",
"url": "https://www.zy018.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "牛牛|点播",
"url": "https://api.niuniuzy.me",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "优异资源",
"url": "https://a.uezy.pw",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "老鸨资源",
"url": "http://laobaozy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "色色虎资源|AV",
"url": "https://apisesehuzy.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "好色资源|AV",
"url": "https://haosezyw.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "老色逼资源|AV",
"url": "https://apilsbzy1.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "️🔘米色",
"url": "https://www.msnii.com",
"parse_url": "",
"cate_exclude": "",
"api": "/api/json.php/"
},
{
"name": "色南国资源",
"url": "https://api.sexnguon.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "滴滴资源",
"url": "https://api.ddapi.cc",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "小黄人|点播",
"url": "https://iqyi.xiaohuangrentv.com",
"parse_url": "",
"cate_exclude": ""
},
{
"name": "🈵成人影视1",
"url": "https://www.partnersky-horoskop.com",
"parse_url": "",
"cate_exclude": ""
}
]

1333
json/采集[zy]静态.json Normal file

File diff suppressed because it is too large Load diff

48
json/采集[密].json Normal file
View file

@ -0,0 +1,48 @@
[
{
"name": "jk",
"url": "https://jkunzy.com",
"parse_url": ""
},
{
"name": "鲨鱼",
"url": "http://shayuzy5.com",
"parse_url": ""
},
{
"name": "奥斯卡",
"url": "https://aosikazy.com",
"parse_url": ""
},
{
"name": "乐播",
"url": "https://lbapi9.com",
"parse_url": ""
},
{
"name": "老鸭",
"url": "https://api.apilyzy.com",
"parse_url": ""
},
{
"name": "森林",
"url": "http://senlinzy2.com",
"parse_url": ""
},
{
"name": "阿里BB",
"url": "https://bbckzy1.cc",
"parse_url": ""
},
{
"name": "滴滴",
"url": "https://didizy.com",
"parse_url": ""
},
{
"name": "奶香",
"url": "https://naixxzy.com",
"parse_url": "",
"cate_exclude": "精品国产|精品日韩|精品综合|精品小说|精品美图"
}
]

145
json/采集[密]静态.json Normal file
View file

@ -0,0 +1,145 @@
[
{
"name": "jk",
"url": "https://jkunzy.com",
"parse_url": "",
"class_name": "H4sIAFQldWYC/zVOzU7CQBh8m+89OHnXBM/Gq4kmnryJDVQgUtoE9wCaFbQl1bU2oq67LH2Z/b7dvoVt1MtkfpKZsVLQbYiC4fcMiD3R4oUWQ8d7/4LxVnS6Plv5YgPHp+dnJ0cXUAcG5RVVlxT0gfgDzkXDrBqDVQpT7dRHm9Sria2Y3aZuOgCMUldqfIvaIhKp3XGMHrEvoZ5Vrgh9de+NgVrHVt75oqQghoPDzh74MKfxDfa+GoTfTRytafsMzsROLa3UlAigydKPSveu8ZqBlUOnsr/l7r7PBj5LAOfGti7HPAG34c1Zmgr/mkPN1s17qz9/AO52o6oSAQAA",
"class_url": "1&2&3&4&5&20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37",
"cate_excludes": [
"都市激情",
"校园情事",
"人妻纵情",
"风俗伦理",
"另类小说",
"武侠古典",
"长篇连载"
]
},
{
"name": "鲨鱼",
"url": "http://shayuzy5.com",
"parse_url": "",
"class_name": "H4sIAFMldWYC/z2PTU7CUBhFd/PNXQJDJ46M+ymmajF9Fgm2QElLg21RiopRyuvfZr6fdheWhDi8ybk359KiQp3wrdlae2D3lf0tu6GEBgxu2FPsBYB5xi/3lLl0nIJUY9ER5gU/Z8APDmpNo5TLd+BtIrU6L9Gi4nQlicGPNnTTpjUbzJdt5EM3LGj3e6rFBXTBpiexjMW5gy6ecf5xDrKvaWKwSlvbAVKB6C9a71plAQdz9tPry6sB0DrhVa/8hkfz3/cCsDAkGcusJlv1zIZ/DtKUQJ9PdFh2XoOV05v2vyzMRzwMUc9PjvxdcTT5AwonCZQRAQAA",
"class_url": "1&2&3&20&21&22&23&24&25&26&27&28&31&32&33&34&35&36&37&38&39&40",
"cate_excludes": [
"原纱央莉",
"柚木TINA",
"大桥未久",
"仁科百华",
"天海翼",
"小川阿佐美",
"三上悠亚",
"长泽梓"
]
},
{
"name": "奥斯卡",
"url": "https://aosikazy.com",
"parse_url": "",
"class_name": "H4sIAFUldWYC/z2PbU6DQBCGb7P38AD+0aTngaC1VEoAU0CBFlG6WkvapsTQhepldmaXW8inP5953zwzA8GFMyrptE5swosM3QfIPDgvCXQJr2LYOgS9FMMdhrqI1RG8uIMdFT/mAFAxSAt+PvJqQ2D2jeFC7o+o2aOtKNHJCP4qqN3D/AOrL4K+if4aF4m8KwjO3drPh3MgPfHK73PSz3ihgMFGYEYL4mJjENWlje7zf01vk+YKYU0bEIySq4mkb3Kfk9tredBw2XStSJo6HOxmEcGVCk8qbF8aUbsZLAMViupj6xcsgfcco9fBD0HQ+RmDjStOJcw8Uq8/2yf7Dyc3TVFS5w/sThNDXwEAAA==",
"class_url": "20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44&45&46&47",
"cate_excludes": [
"视频一区",
"视频二区",
"视频三区",
"视频四区"
]
},
{
"name": "乐播",
"url": "https://lbapi9.com",
"parse_url": "",
"class_name": "H4sIAFMldWYC/y2QbW6CQBCGbzNX6U2a9BZSiqjIV6v1AwxoqxgtsX5EYRF6mZ3Z5RZdIn822eSdZ955OJvT5US6IfsnwKDkLOFZQe9p+5HmjiwbaBKLWOPZBw4Z0E8iKoc6iegdQXQjXJ85Y7gpAO8M1xnPj/y+AbxteX5WSfUCz1L6NDGdYD4G7F0ptOXhSLoPahq9oaKRZgHay7ozx8FWjAqQSbde+QolvC7gr6+S0ltIpw+1aaP7pSqr4tDsNkoF4OwbaH7BQSBnHlYGYLoRo4jiJQYpCOcN84IXM17FQFOHphFqV9RdaDKXotZLzF5VUVttVF0atCjcejekscGZBSLxFVAxSD8Djg6Ng8wQ7ACi9NG1WlX8YfRhp1X112lodXhCk6F2E7s11PupvEU8W8hV2J5N931z9tPLsxKAQfUP2nDGlJwBAAA=",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&19&20&21&22&23&24&25&26&27&28&29&30&31&32",
"cate_excludes": [
"暴力虐待",
"学生校园",
"玄幻仙侠",
"明星偶像",
"生活都市",
"不伦恋情",
"经验故事",
"科学幻想",
"唯美清纯",
"网友自拍",
"亚洲性爱",
"欧美激情",
"露出偷窥",
"高跟丝袜",
"卡通漫画",
"Gif动图"
]
},
{
"name": "老鸭",
"url": "https://api.apilyzy.com",
"parse_url": "",
"class_name": "H4sIAFUldWYC/zWPYU6DQBCFbzP36E8v4Hm6qZZihUJVwIhCqixNLakUFVhoT7Mzu97CLdo/L3mTee/Lw6eDFDlNrrW9BwozircUpiplZxPbJyObggILixDbB6Btro4uvTC8Y4A3a+rf1f44mF5g1si2lD0HXEQ0ZrjgquwAB45sOloWgPVatpXpMAo4+6bY0buSJj6oaYJZJYVA3hmorUym58qbgrY2NHeQ1UZhdEHOSl81QF81vgUUuRQlgB++CWvvWbv2GdinuFmCOvhKrH46n4JHMD/o3dI4JzaHARWoqsNZCKNLnb/q3SdgwdV98n/9G3oq59Yvnjb47C8BAAA=",
"class_url": "20&21&22&23&24&26&27&28&29&30&31&33&34&53&57&58&62&63&74&75&76&77&78&79"
},
{
"name": "森林",
"url": "http://senlinzy2.com",
"parse_url": "",
"class_name": "H4sIAFQldWYC/0VSzZLSQBB+m7579Gj5Ap68e7dKqzx5g10hQJbAruxGIUggIUF2I79KSEjyMtM9M29hB7K1h3RVV3f6+xu5zfF7nayF6vYBR5lIQtXe0nUDRJzSXSRHe64gkiHtt2S70q0/N0773MQRPRgY2Xi8BzwsxHEnc4srryUYpLI5wfkO8JTgPBbHjTgFQE8h78gzNKj+WFltXN+WazyV/aaI2zIJgVr98kZnQadHUMaSzC7WD1wBW//I6Yp4rGYOYM8Tia9nDq6/Adlzcp6q028/ffn88cNXkHuXD10u8PqajrnKPQyOoCe/WTTmUwxZ/mDFtChelY2IHezaLPXNe+abqHyDxg1XwHbI9ojUlCkf84clRX/4Dl6/ImumOhuQ2a1MZvS3jkYC2rDQf9DOtmyw5yuvQe0/dBoAyxWnH3KXYsvmyUq2NhgFcjAB7VmMQLatZozQyFRtV63JW0ecMuX5oO2DXg6p46PH3hSGap69YGwajbW9YCddXN4xamkEY2H/hmoh1U2Qg8NLw59qFNK80tEA9HWG8RUVtTJ/cqc4ikqpifmcZbwpJ3q2EIWNtUeOipkHcpPiuqdWe6AoELnLMrERg74v5MpQxS+VZZW32PwpnUnJEntmlcfFmwpUTe2XlC/58m/MELA71bUhvwQ5SKsHdPHpP+FuGXjCAgAA",
"class_url": "20&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44&45&46&47&48&49&50&51&52&53&54&55&56&57&58&59&60&61&63&64&65&66&67&68&69&70&71&72&73&74&75&76&77",
"cate_excludes": [
"都市激情",
"校园情事",
"人妻縱情",
"風俗倫理",
"另类小说",
"武侠古典",
"长篇连载",
"唯美写真",
"网友自拍",
"露出激情",
"街拍偷拍",
"丝袜美腿",
"卡通漫画",
"欧美风情"
]
},
{
"name": "阿里BB",
"url": "https://bbckzy1.cc",
"parse_url": "",
"class_name": "H4sIAFYldWYC/zXOXQqCQBSG4d3MPrpsV4mVKSj+UF44gUj+UA5hQY022mbmnOMyMtDL5+b9PlAd5FK3jVYFg6TXXanlB0MxA71sdJoZ9BggMhj1ASZn8E2KOFut0c3GrWQY58hrjFNKjQXc/kNLgScLRAztcYJN04YqyN8zOLyQu+O9QTNg+N2guQOnQnWbA/CudPtkWJc0eHApybaWkyqFa/gDXRGYEL4AAAA=",
"class_url": "2&4&5&6&7&8&9&10&11&12&13&14&15&16&17"
},
{
"name": "滴滴",
"url": "https://didizy.com",
"parse_url": "",
"class_name": "H4sIAFUldWYC/zWPzVLCQBCE32buHn0R7564WOXBg1c05YaA8mclIbAloRQCQoRIKhWSEF9mZ3bzFi4abvNNd3VX4+QoskCkr/icAf4Bdh/RZiDSnIahCpj62gK5c+Ibcn3pP5yBWycQaUiOiaGLB/sE+qptNfzbaBfTG6e4VMG72sZQZbmKmCh8/BzC5QW2EmmZuhkU5zQz8Bih0atl/FjJsluD/C5FyrUu0jHQaCpXme6rvP7Z3NvRoby7v24APiUid+q/SC2phxYL2Weg43C+R+ZJPgV8mVXNMbaXVKyhMs1qwsj25LIDarBW7UXdJfcO/hhXN7cNoE2gE6gZyFYEVT4gxxNZR+TJL1aKp0hOAQAA",
"class_url": "20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44",
"cate_excludes": [
"国产厂商",
"水果派解说",
"卡通动漫",
"采集教程"
]
},
{
"name": "奶香",
"url": "https://naixxzy.com",
"parse_url": "",
"cate_exclude": "精品国产|精品日韩|精品综合|精品小说|精品美图",
"class_name": "H4sIAFUldWYC/zWOW3KCQBBFd9P7yALyk1S5niBGBKPim4QkWFo4vvAVkyACbma6Z9hFBiE/U3Wq5957xDHFvoZuwiMG4gY09jNvWYK4xGg3SsB9R+5O/5e0jW4KRVQaK2q2gIcX6gVydyC9C9SeSusgormobgG1X/VBvWLlg0i65H6grYv+O5A1ypyT8AJhGsDjCa56aDLSn6EQKTpLoPFETDS1E9DIwGCM5yHcVSSb5V7UmspaSE6bHA8wjtAP+fnA4zmg/8Vjp7zQhil3uj7lG5nRws6sBB6aImIqIOw6FBJoLShew+O93Os0fM2b0H6hJ0ZaEyoPktUl60GmJxhW5eLWQm8ntFyefgtrB7j9wShQlblGHqt5MlrzpA8qJ80jmVuKByDmHWwskW1ArYnBRV4/ZZL8AQZHJrmdAQAA",
"class_url": "1&2&3&4&5&20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44&45&46&47",
"cate_excludes": [
"精品国产",
"精品日韩",
"精品综合",
"精品小说",
"精品美图",
"都市言情",
"暴力侵犯",
"家庭伦伦",
"性感身体",
"角色扮演",
"福利姬",
"漫画连载"
]
}
]

View file

@ -0,0 +1,226 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : 采集分类生成器.py
# Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------
# Date : 2024/6/21
import os
import json
import gzip
import base64
from urllib.parse import urljoin
from concurrent.futures import ThreadPoolExecutor
from pprint import pprint
import time
import requests
import warnings
# 关闭警告
warnings.filterwarnings("ignore")
requests.packages.urllib3.disable_warnings()
pool = ThreadPoolExecutor(max_workers=20) # 初始化线程池内线程数量为20
headers = {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
'Connection': 'close' # 设置为关闭长连接
}
timeout = 5 # 5秒
use_gzip = False
def compress_and_encode(data: str):
# 压缩数据
compressed_data = gzip.compress(data.encode('utf-8'))
# 对压缩数据进行Base64编码
encoded_data = base64.b64encode(compressed_data).decode('utf-8')
return encoded_data
def decode_and_decompress(encoded_data: str):
# 解码Base64数据
decoded_data = base64.b64decode(encoded_data.encode('utf-8'))
# 解压缩数据
decompressed_data = gzip.decompress(decoded_data).decode('utf-8')
return decompressed_data
def get_classes(rec):
classes = None
if rec.get('url') and str(rec['url']).startswith('http'):
_class_api = rec.get('api') or '/api.php/provide/vod/'
_api = urljoin(str(rec['url']).rstrip('/'), _class_api)
# _api = urljoin(rec['url'], '/api.php/provide/vod/at/json')
print(_api)
try:
r = requests.get(_api, headers=headers, timeout=timeout, verify=False)
ret = r.json()
if rec.get('name') == '乐视资源':
print('=======乐视=========')
print(ret)
# print(ret)
classes = ret.get('class')
except Exception as e:
print(f'获取资源【{rec["name"]}】({_api})分类发生错误:{e}')
return classes
def convert_class(classes, name=None):
"""
获取的分类转静态分类格式
@param classes:
@return:
"""
if name is None:
name = ''
if not classes:
return {
"name": "",
"class_name": "",
"class_url": "",
}
class_names = []
class_urls = []
for cls in classes:
if cls.get('type_name') and cls.get('type_id'):
class_urls.append(str(cls['type_id']))
class_names.append(str(cls['type_name']))
global use_gzip
return {
"name": name,
"class_name": compress_and_encode('&'.join(class_names)) if use_gzip else '&'.join(class_names),
"class_url": '&'.join(class_urls),
}
def get_convert_classes(rec):
classes = get_classes(rec)
classes = convert_class(classes, rec.get('name'))
return classes
def check_class(api, type_name, type_id, limit_count=6):
_url = f'{api}?ac=detail&pg=1&t={type_id}'
try:
r = requests.get(_url, headers=headers, timeout=timeout, verify=False)
ret = r.json()
if not ret.get("list") or len(ret["list"]) < limit_count:
print(f'获取资源 {api} 分类【{type_name}】数量为:{len(ret["list"])} 小于{limit_count}视为排除')
return False
except Exception as e:
print(f'获取资源 {_url} 分类【{type_name}】发生错误:{e}')
return True
def check_active(api):
try:
r = requests.get(api, headers=headers, timeout=timeout, verify=False)
ret = r.json()
if not ret.get("class"):
return False
except Exception as e:
print(f'检查api: {api} 存活发生错误:{e}')
return False
return True
def main(fname='采集'):
file_path = f'./{fname}.json'
out_file_path = file_path.replace('.json', '静态.json')
if not os.path.exists(file_path):
exit(f'不存在采集文件路径:{file_path}')
with open(file_path, encoding='utf-8') as f:
data = f.read()
records = json.loads(data)
print(records)
# for rec in records:
# ret = get_convert_classes(rec)
# pprint(ret)
tasks = [pool.submit(get_convert_classes, rec) for rec in records] # 构造一个列表循环向线程池内submit提交执行的方法
pool.shutdown(wait=True) # 线程数等待所有线程结束,这里 卡住主线程
results = [task.result() for task in tasks]
print(results)
new_records = []
for record in records:
rec_name = record["name"]
if rec_name:
has_name = [ret for ret in results if ret.get("name") == rec_name]
if has_name:
record.update(has_name[-1])
new_records.append(record)
pprint(new_records)
print(f'转换静态数据成功记录数:{len(new_records)}')
with open(out_file_path, mode='w+', encoding='utf-8') as f:
f.write(json.dumps(new_records, ensure_ascii=False, indent=2))
def main_exclude(fname='采集静态', max_workers=0):
file_path = f'./{fname}.json'
if not os.path.exists(file_path):
exit(f'不存在采集文件路径:{file_path}')
with open(file_path, encoding='utf-8') as f:
data = f.read()
records = json.loads(data)
if len(records) < 1 or not records[0].get('class_name'):
exit('输入数据有误,疑似不是静态数据')
print(records)
new_records = []
for rec in records:
new_rec = rec.copy()
if rec.get('api'):
api_url = urljoin(rec['url'], rec['api'])
else:
api_url = urljoin(rec['url'], '/api.php/provide/vod/')
print(api_url)
cate_excludes = []
if not check_active(api_url):
print(f'{rec["name"]} ({rec["url"]})视为不存活,跳过分类检测')
else:
class_names = decode_and_decompress(rec['class_name']).split('&')
class_urls = rec['class_url'].split('&')
rec_pool = ThreadPoolExecutor(max_workers=max_workers or len(class_names)) # 初始化线程池内线程数量为分类数量
tasks = []
for i in range(len(class_names)):
type_name = class_names[i]
type_id = class_urls[i]
tasks.append(rec_pool.submit(check_class, api_url, type_name, type_id))
rec_pool.shutdown(wait=True) # 线程数等待所有线程结束,这里 卡住主线程
results = [task.result() for task in tasks]
print(results)
for i in range(len(class_names)):
type_name = class_names[i]
# type_id = class_urls[i]
if not results[i]:
cate_excludes.append(type_name)
if len(cate_excludes) > 0:
new_rec['cate_excludes'] = cate_excludes
new_records.append(new_rec)
with open(file_path, mode='w+', encoding='utf-8') as f:
f.write(json.dumps(new_records, ensure_ascii=False, indent=2))
if __name__ == '__main__':
use_gzip = True
fmode = str(input('请输入处理文件方式(0:生成分类 1:添加分类过滤),留空默认为生成静态分类:\n'))
ftips = '采集静态' if fmode == '1' else '采集'
fname = str(input(f'请输入文件名(q结束程序),留空默认为{ftips}:\n'))
t1 = time.time()
if fname == 'q':
exit('已主动结束脚本')
if not fmode or fmode == '0':
fname = fname or '采集'
main(fname)
elif fmode == '1':
fname = fname or '采集静态'
main_exclude(fname, 10)
else:
exit(f'未知的处理类型:{fmode}')
t2 = time.time()
print(f'本次程序运行耗时:{round(t2 - t1, 2)}')

88
json/采集转换器.py Normal file
View file

@ -0,0 +1,88 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : 采集转换器.py
# Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------
# Date : 2024/7/4
import json
import requests
from urllib.parse import urlsplit
from collections import OrderedDict
def get_host(url):
"""
获取主页地址
@param url:
@return:
"""
ret = urlsplit(url)
return f'{ret.scheme}://{ret.netloc}'
def get_sid(url):
"""
获取id主页
@param url:
@return:
"""
ret = urlsplit(url)
return ret.netloc
def get_api(url):
"""
获取接口api
@param url:
@return:
"""
ret = urlsplit(url)
return ret.path.rstrip('/') + '/'
def delete_same(data, key='url'):
"""
字典列表去重按字典的某个key
@param data:
@param key:
@return:
"""
unique_data = list(OrderedDict((d[key], d) for d in data).values())
if key == 'sid':
for site in unique_data:
del site['sid']
return unique_data
def main(zy_url="https://cdn.jsdelivr.net/gh/waifu-project/v1@latest/zy.json"):
r = requests.get(zy_url)
ret = r.json()
sites = ret['sites']['data']
sites = [site for site in sites if site.get('type') and site['type'] == 1]
print(f'共计发现type1的站点:{len(sites)}条记录')
covert_sites = []
for site in sites:
if site.get("name") and site.get("api"):
surl = site['api']
host = get_host(surl)
api = get_api(surl)
sid = get_sid(surl)
cvalue = {
"sid": sid,
"name": site["name"],
"url": host,
"parse_url": "",
"cate_exclude": ""
}
if api != '/api.php/provide/vod/':
cvalue["api"] = api
covert_sites.append(cvalue)
print(f'转换完成采集之王的站点:{len(covert_sites)}条记录')
covert_sites = delete_same(covert_sites, 'sid')
print(f'去重后的采集之王的站点:{len(covert_sites)}条记录')
with open('采集[zy].json', mode='w+', encoding='utf-8') as f:
f.write(json.dumps(covert_sites, ensure_ascii=False, indent=4))
if __name__ == '__main__':
main()

191
json/采集静态.json Normal file
View file

@ -0,0 +1,191 @@
[
{
"name": "业余资源",
"url": "https://yyff.540734621.xyz",
"parse_url": "",
"cate_exclude": "",
"class_name": "H4sIALCjdWYC/0VQWw6CMBC8Tc+pEpD6oaiIJpDwo6kvomiIUqin6XbhFspSw9/s7GRmdjEsQOUMw6IRHnDBYHY09YWhPIPaIJ8yrOqGy47XKukIiJKfkFZ+bhyXOC4sQrGEsuqQ8XdackLjwIwi0sVKS9HlmKvAz5zQ9tCmJ0LvGyzu1CJW4Lk2upf+h+IF+2jQ2L7Wzg69o73EycwqwzQbsqxVmz51GTCt1s3kYash/eMLtttB6BYBAAA=",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&20&21&22&23&24&25&26&27&28"
},
{
"name": "360资源",
"url": "https://360zy.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯",
"class_name": "H4sIALGjdWYC/zWRa3aCMBCFd5N9tAvomhRaFHoqcKpYrUd7VEQtCD6rYGAzee6iYYi/8s0kmZl7h/fPFO+RqKa8SKgdIV7chZ0j6qzZ/ReR+4p7Frc7dYLgCVAwUQ9r4t09M9+AIp/eippY22OtAN7Zkb5l3S+S25D7xiSP6j5yNWLXFGi2UemaWBzxslcTwZ/COKCX5yfETIcZY/i8u9A84akidykWUJr2LOoeoIkR88CHYZyU4y1Qu5TjEijfUjwAmiVaD+/DxNTN2K2E/sOQTWKg8x9dBkDHTE9Hl5EcWdqfenY3ewTDUIl4BCDiYWOjtzFTy9MB/NGBuBy5ZyKe7uqDTba0a/F9gURYSXPdWI1Z0FGzw456GSkW0sT0aiDx6rPTtFGP6O2kbvimEhdHu0SKESl/VPAhcKzKgJTwKOc+a7+rDarteHJQyZYl5sk/IOiszA8CAAA=",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&45&46&47&48&49&50&51&52&53",
"cate_excludes": [
"电影",
"连续剧",
"综艺",
"动漫",
"体育",
"海外剧",
"泰国剧",
"港台综艺",
"日韩综艺",
"欧美综艺",
"欧美动漫",
"足球",
"篮球",
"未分类",
"脑洞悬疑",
"反转爽剧"
]
},
{
"name": "豪华资源",
"url": "https://hhzyapi.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯",
"class_name": "H4sIALGjdWYC/zVPWw6CMBC8Tc/pI6D1w0eCKErCj1ofKBBjokg5DbsLt7Bdy1dnZrezMxS8WuWDVIKCF+hCYKqonluhO0X4zhglF/vg5sjskuIzt6ipTrT0SU4EzM6Nji2iaYFjj7UwNkusqRV8vhbhcImDkKdSuT2cbptSWtQ+ctBr54fVTYDvQcynjEABWzTvO+y1WzCRME578o/+J/StWlkKWOT4qdnhoLrId7L5Z0r1xLRc5D1hE0doWHe7mkOOUgpXXGaWkb5yyOPE1aLkbk78ALNMUSlMAQAA",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&20&23&24&25&26&27&28&30&31&32&33&34&35&36&37&38",
"cate_excludes": [
"电视剧",
"电影",
"动漫",
"综艺"
]
},
{
"name": "速播资源",
"url": "https://subocaiji.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯",
"class_name": "H4sIALGjdWYC/zWPWw6CMBBFd9N1+ohKNVGMiBpI+FHrAyJISHiV1bQzsAuZgl/39LY9k0En0zJh6GStWGoumF4/oH4zrOqWlwzLl5ZH5CvqlfSJ0EpgvjAk9rqoiMA6q5Kbd1yMtzC1YeKazvX7erT0dhyG6qvoLsPQXQxFQ9QFTwpsthSQf6BJDZ1uJtKYQtV3tJckVPLQzr5t5qlyw1QeaU+OG/Q/wA//h1CQctwtiHrJD0Ycn8r6AAAA",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&20&21&22&23&24&25&26&27",
"cate_excludes": [
"电影",
"电视剧"
]
},
{
"name": "红牛资源",
"url": "https://www.hongniuzy2.com",
"parse_url": "",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯",
"class_name": "H4sIALGjdWYC/y2PXQ6CMBCEb9Nz+hOVaqIYFU0g8qRV1AgSEikUL9Pu1lvorj7Nl5nNZBbXlTOF8K89NjcnlcCm9VILNz1BeyGxJkE5ES5KvjERBgUMR0xq6eqGCPoh9CK+k+qfQrCzWrIXG6sVtcPzDl3JtD2wXBV2cyK3yKHu2Ctzknd65kE6c2bDNbwJf4tte8RwTLY1Kz94+Cq2eiYwpS8+mOVyptYAAAA=",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&19&20&21&29&30",
"cate_excludes": [
"电影",
"连续剧"
]
},
{
"name": "新浪资源",
"url": "https://api.xinlangapi.com",
"parse_url": "",
"api": "/xinlangapi.php/provide/vod/from/xlm3u8/",
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯",
"class_name": "H4sIALGjdWYC/0WOXQ6CMBCEb9Nz+hOR+qAYETUh4UWtikaQkEihPU27W24hXU18msk3m53BuLaqZBjXTgSWC2YXF+hyhm3nuGQob1Ztkc89Nyr1DsMSpjNyYm2b1jsI90ZyuuPil8I4glFCLEkHTO4o+gP1wPsJuqLGVQGNJnYXqJf/Ffgd12dXSncnkqrwYrozRoH/adTGTV4Ms8fAP2ziC/TQAAAA",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18&20&21&22&23&24",
"cate_excludes": [
"电影",
"电视剧"
]
},
{
"name": "飞刀资源",
"url": "http://www.feidaozy.com",
"parse_url": "",
"cate_exclude": "^电影$|^电视剧$|^综艺$|^动漫$",
"class_name": "H4sIALCjdWYC/zWR3W7CMAyF3ybPyY8KbYVWOnXZBtV2hUJZJ0ATE2tIn6ax27dYYidX+Y5jHZ84WN2suQqsbqNa2UwJ1I8x64TNj/D4Enb1PL03mK2Fu4NlQpQfB1MHwkojW9jtBmaKyrJ23USHtf3TnqBV2D/5AfB68Mf02fjD7s3QKarPtzCT1LtoUZZEyxwWO6L0begyou/NmH54wnk/7Xqi9BrCYX5GcyJSZZiNurDJnciUqOsQGH4uNPd+piAFK3mZmpYKye+gJdUoe1iMiw91G4R/xN7EldFTYhv5uBFRuylFFGwdb3gzvG92D4Ld40/wokJbdI+a3GMnB2eB3cmaF/f2f00wLfvpAQAA",
"class_url": "1&2&3&4&6&7&8&9&10&11&12&13&14&15&16&20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44&45&46&47&48&49&50",
"cate_excludes": [
"电影",
"电视剧",
"综艺",
"动漫",
"欧美综艺",
"日本综艺",
"韩国综艺",
"国产综艺",
"新马泰综艺",
"港台综艺",
"其他综艺",
"韩国动漫",
"新马泰动漫",
"其他动漫"
]
},
{
"name": "黑木耳资源",
"url": "https://www.heimuer.tv",
"parse_url": "",
"cate_exclude": "^电影$|^电视剧$|^综艺$|^动漫$",
"class_name": "H4sIALGjdWYC/0WSbXKCQAyGb8M5UQcRqgU7DFal2mllKBa/pqNjQexl2M1yi7LZpP2175PNJnkDEJ1FfbIgOqtsKLzMEv6HvH1aUN2UV1pdRA4c8Fwdb+oE1fCpneeowrG0M1Rx0qWiSl3xXWkle6G0Y4wt66bMdHV5PeijXedIsxSPfgHxFJ8MfNlfaAW9e7u4oxqdaATwD1BvUWVTatKNBVEF5GK9w3pfR3QS4CGLDO6PqOJjmxd45VyaKsbYbqxGK+w9em5KD6tXgXCuqOopVAlV7x6J/eDfD61IWwqOBNrYsuabWSqTggHHYMBJujl5zTgPQ7BR7w55UfNQ9h4IWnuo3nbs0mzNAKQrddpymjuBaE0gNpOmcjkt/1EXnyFKxP6V026lsv+ahmOxf+EbY5uammWaf8T4IzDOCeiDUxouiIGdcyZWN/ALQpTFCIwCAAA=",
"class_url": "1&2&3&4&6&7&8&9&10&11&12&13&14&15&16&20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44&45&46&47&48&49&50&51&52&53&54&55&56&57&58&59&60&61&62&63",
"cate_excludes": [
"电影",
"电视剧",
"动漫",
"综艺",
"短剧",
"其它片",
"新马泰综艺",
"古装短剧",
"悬疑短剧",
"神豪短剧",
"复仇短剧",
"强者短剧",
"萌宝短剧",
"韩国动漫",
"新马泰动漫",
"其它动漫"
]
},
{
"name": "iku喵",
"url": "http://caiji.ikum.cc:8099",
"parse_url": "",
"cate_exclude": "",
"class_name": "H4sIALGjdWYC/yXIOw5AQBRG4d3clVKMgmKEQlBNhiAoiBiPzfjdsQsxmpMvh+MJ+0j2LNh0EJrYbFashKC6t4aQ7deqv38vPaLBKVVPWTu1mo/wE/z5MomTd3KjyMocviDIGLL++wIj0AZ/awAAAA==",
"class_url": "1&2&3&4&20&21&22&23&24&25&26&27",
"cate_excludes": [
"蓝光"
]
},
{
"name": "暴风资源",
"url": "https://bfzyapi.com",
"parse_url": "",
"searchable": 0,
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯",
"class_name": "H4sIALGjdWYC/zWRa3aCMBCFd5N1+kIFj1VOLdbq0Z6iBq0VrI8qGN1MMhN20WSAP8x34c7NZMDRWYkDuh2mvEiKGVEwUy63BPUh1AJLyH11y4i6B2g65HN5SdB9l6lLX9OtEm9Ew7bep5b0c47Zj3EzNRUy5ZZgx/HxYilfT+AaEy02xkC+QQK3B/nGK5jtiM5/ahkQHZPK50Vw/6ZZimTStslmlaI4qRTmpEFSiSKxEJjdtUvjqiXPJ+1Clw2VoNxKUG4pTAiOivXQQjUPdXxi+VdL+Z59LcWrbvzq81SmPaYvRxw2GcZ7KsK3BYJYx6lyegwXdllmDOVELO/0cbSAxDc3ZLh56ounbieZhQxfElN0VDM/wWysr8UOuwICc4PVEeo9qGU6rLN8vFWbD1xn5snyplDXhm75cJqbnqUOHZlN5OPzH964N6gIAgAA",
"class_url": "20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44&45&46&47&48&49&50&51&52&53&54&55&56&57&58&65&66&67&68&69&70&71&72"
},
{
"name": "量子资源",
"url": "https://cj.lziapi.com",
"parse_url": "",
"searchable": 0,
"cate_exclude": "电影片|连续剧|综艺片|动漫片|电影解说|体育|演员|新闻资讯",
"class_name": "H4sIALGjdWYC/zWR607DMAyF3ybPCbuxDom1Yms3UTEJtmWI0bSMAr1kvEzspG9B46S/8h3b8XEcvSpBFjq4Y+bvWTcfEHCmm9YEtY3B4oTtuyclU6I47Yss6XmB4ykRj6BqLOFtiDcx1QXcZ3G+UXVAsSepam49uuMWfwXR7q0PW8Iz19cHSybLQa7pxjLH6krZ5IDpmaj8gX1MdMn9XdjzbjtzkzPbeZkPIjn0FoMgCy/8NPRGXzYIN4kX1G0QztsJ1R51OKMF0BoNfzXiiyn5aEafzHxfdDhmWmR0yMgeGAsjapjeM2xXEG36QN4ljSknJhNDGyfgVKgqdHnWvUwgWpDVzn7SP/ilxw64AQAA",
"class_url": "1&2&3&4&6&7&8&9&10&11&12&13&14&15&16&20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&43&44&45&46",
"cate_excludes": [
"电影片",
"连续剧",
"综艺片",
"动漫片",
"体育",
"演员",
"新闻资讯",
"电影资讯",
"娱乐新闻"
]
},
{
"name": "乐视资源",
"url": "https://leshiapi.com",
"parse_url": "https://leshivideoplayurl.com/?url=",
"cate_exclude": "",
"api": "/api.php/provide/vod/at/json/",
"class_name": "H4sIALWjdWYC/zVRWXbCMAy8jc/JUiAJjyWvNC3Lg1KWAE1fQlkKCQ6XsS3nFrVl+yszkmc0UmB04fRIID9w+gZ+h8jnHIof7sdEJDGUfY2q7VjcUo14sGN0pt+BdxTNFqI45PdCI1EfilqkkXpru8L7YLmPtWimyoiCHYxQAUEK9IC1KWV5jNMWe0XsNPH4JlA8pJ8Tvo6rcdsSnWeQOfK+USJHMLbTDDJxL9HL+BtHJRCzxBGzpyWXP76OHDllNokS6A/gtWS8kumZ8E3H7g31spqUuG0jgSjEfVpXVuAtGH2VjV95mbK86/y11wKvzB5bGLZRiyuxmw+5O4Jp2riW8N6yqk1sQjPFdQY9SRPwzO02p+orFPWu+lGqs5arFivGrPwk/H5mxQr2T3kNiHwJxXluYhPoZ6pTNSm/Nf4BxMaYBRkCAAA=",
"class_url": "1&2&3&4&5&6&7&8&9&10&11&12&20&21&22&23&24&25&26&27&28&29&30&31&32&33&34&35&36&37&38&39&40&41&42&44&46&48&49&50&51&52&53&54&55&56&57&58&59",
"cate_excludes": [
"电影",
"连续剧",
"体育赛事"
]
}
]