mirror of
https://github.com/qist/tvbox.git
synced 2025-01-24 11:24:52 +08:00
Add files via upload
This commit is contained in:
parent
5a5f44b467
commit
0cf737ead1
12
json/lezhu.json
Normal file
12
json/lezhu.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"homeUrl": "http://www.lezhutv.com/type/{cateId}-{datePg}.html",
|
||||
"header":{
|
||||
"User-Agent":"Mozilla/5.0 (Linux; Android 8.1.0; ALP-AL00 Build/HUAWEIALP-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.11 (Baidu; P1 8.1.0)"
|
||||
},
|
||||
"playlist":{
|
||||
"sort":1
|
||||
},
|
||||
"search":{
|
||||
"url": "http://www.lezhutv.com/index.php?m=vod-search&wd={wd}"
|
||||
}
|
||||
}
|
183
json/zxzj.json
183
json/zxzj.json
@ -1,68 +1,122 @@
|
||||
{
|
||||
"ua": "",
|
||||
"homeUrl": "https://www.zxzj.vip",
|
||||
"dcVipFlag": "true",
|
||||
"pCfgJs": "https://www.zxzj.vip/static/js/playerconfig.js",
|
||||
"pCfgJsR": "[\\W|\\S|.]*?MacPlayerConfig.player_list[\\W|\\S|.]*?=([\\W|\\S|.]*?),MacPlayerConfig.downer_list",
|
||||
"dcShow2Vip": {},
|
||||
"dcPlayUrl": "true",
|
||||
"cateNode": "//ul[contains(@class,'stui-header__menu')]/li/a[contains(@href, 'list')]",
|
||||
"cateName": "/text()",
|
||||
"cateId": "/@href",
|
||||
"cateIdR": "/list/(\\d+).html",
|
||||
"cateManual":{},
|
||||
"homeVodNode": "//a[contains(@class,'stui-vodlist__thumb')]",
|
||||
"homeVodName": "/@title",
|
||||
"homeVodId": "/@href",
|
||||
"homeVodIdR": "/detail/(\\w+).html",
|
||||
"homeVodImg": "/@data-original",
|
||||
"homeVodImgR": "(http\\S+)",
|
||||
"homeVodMark": "/span[contains(@class,'pic-text')]/text()",
|
||||
"cateUrl": "https://www.zxzj.vip/vodshow/{cateId}-{area}-{by}--{lang}----{catePg}---{year}.html",
|
||||
"cateVodNode": "//a[contains(@class,'stui-vodlist__thumb')]",
|
||||
"cateVodName": "/@title",
|
||||
"cateVodId": "/@href",
|
||||
"cateVodIdR": "/detail/(\\w+).html",
|
||||
"cateVodImg": "/@data-original",
|
||||
"cateVodImgR": "(http\\S+)",
|
||||
"cateVodMark": "/span[contains(@class,'pic-text')]/text()",
|
||||
"dtUrl": "https://www.zxzj.vip/detail/{vid}.html",
|
||||
"dtNode": "//body",
|
||||
"dtName": "//div[@class='stui-content__thumb']/a[contains(@class,'pic')]/@title",
|
||||
"dtNameR": "",
|
||||
"dtImg": "//div[@class='stui-content__thumb']/a[contains(@class,'pic')]/img/@data-original",
|
||||
"dtImgR": "(http\\S+)",
|
||||
"dtCate": "//div[@class='stui-content__detail']//p[contains(@class,'data') and contains(text(), '类型')]/following-sibling::*/text()",
|
||||
"dtCateR": "",
|
||||
"dtArea": "//div[@class='stui-content__detail']//p[contains(@class,'data') and contains(text(), '地区')]/following-sibling::*/text()",
|
||||
"dtAreaR": "",
|
||||
"dtYear": "//div[@class='stui-content__detail']//p[contains(@class,'data') and contains(text(), '年份')]/following-sibling::*/text()",
|
||||
"dtYearR": "",
|
||||
"dtActor": "//div[@class='stui-content__detail']//p[contains(@class,'data') and contains(text(), '主演')]/following-sibling::*/text()",
|
||||
"dtActorR": "",
|
||||
"dtDirector": "//div[@class='stui-content__detail']//p[contains(@class,'data') and contains(text(), '导演')]/following-sibling::*/text()",
|
||||
"dtDirectorR": "",
|
||||
"dtMark": "//div[@class='stui-content__detail']//p[contains(@class,'data') and contains(text(), '更新')]/following-sibling::*/text()",
|
||||
"dtMarkR": "",
|
||||
"dtDesc": "//span[@class='detail-sketch']/text()",
|
||||
"dtDescR": "",
|
||||
"dtFromNode":"//div[@class='stui-vodlist__head']/h3[contains(text(),'播放')]",
|
||||
"dtFromName": "/text()",
|
||||
"dtUrlNode": "//ul[contains(@class, 'stui-content__playlist clearfix')]",
|
||||
"dtUrlSubNode": "/li/a",
|
||||
"dtUrlId": "@href",
|
||||
"dtUrlIdR": "/video/(\\S+).html",
|
||||
"dtUrlName": "/text()",
|
||||
"dtUrlNameR": "",
|
||||
"playUrl": "https://www.zxzj.vip/video/{playUrl}.html",
|
||||
"playUa": "",
|
||||
"searchUrl": "https://www.zxzj.vip/index.php/ajax/suggest?mid=1&wd={wd}&limit=10",
|
||||
"scVodNode": "json:list",
|
||||
"scVodName": "name",
|
||||
"scVodId": "id",
|
||||
"scVodIdR": "",
|
||||
"scVodImg": "pic",
|
||||
"scVodMark": "",
|
||||
// 所有的选填字段都可以不填,程序会自己去猜,不一定能猜得出来,猜不出来的得自己去补规则
|
||||
//(必填) 主页地址,建议填list段中的url,程序会从url中提取homeUrl, url中至少要包含{cateId}和{catePg}才能被识别
|
||||
// https://www.zxzj.vip/vodshow/{cateId}-{area}--{class}-----{catePg}---{year}.html
|
||||
// https://www.zxzj.vip/list/{cateId}-{catePg}.html
|
||||
"homeUrl": "https://www.zxzj.vip/",
|
||||
//(选填) http请求需要的header,一般就填个UA
|
||||
"header":{
|
||||
"User-Agent":"Mozilla/5.0 (Linux; Android 8.1.0; ALP-AL00 Build/HUAWEIALP-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.11 (Baidu; P1 8.1.0)"
|
||||
},
|
||||
//(选填) 分类名
|
||||
"cateManual": {
|
||||
"电影": "1",
|
||||
"美剧": "2",
|
||||
"韩剧": "3",
|
||||
"日剧": "4",
|
||||
"泰剧": "5",
|
||||
"动漫": "6"
|
||||
},
|
||||
//(选填) 列表页
|
||||
"list":{
|
||||
//(选填) 当前页面解析区域截取,程序会从截取后的数据中查找各字段,这里只是演示,按实际需求填写
|
||||
"region":["<html>", "</html>"],
|
||||
//"url": "https://www.zxzj.vip/list/{cateId}-{catePg}.html",
|
||||
//(选填) 列表页的页面地址,具体规则和xpath一致,不存在在里会使用homeUrl,但是homeUrl必须是带{cateId}\{catePg}的这个格式
|
||||
"url": "https://www.zxzj.vip/vodshow/{cateId}-{area}--{class}-----{catePg}---{year}.html",
|
||||
// (选填) 有的网站分类的第一页和后面的页url规则不同,可以这样指定具体的catePg 对应的url
|
||||
//"1": "https://www.zxzj.vip/vodshow/{cateId}-{area}--{class}-----1---{year}.html",
|
||||
// 视频ID,列表页不能正常显示一般都是这个规则不对
|
||||
// 爬虫使用JSONArray来获取相关字段内容,JSONArray中共用到5个参数,具体说明:
|
||||
// 1 要获取字段的前缀,必填
|
||||
// 2 要获取字段的后缀,必填,这两个参数确定后一般要取的字段就出来了
|
||||
// 3 获取到字段后该字段正确值的左偏移量,真正的值会加上这个偏移量,默认为0
|
||||
// 4 获取到字段后该字段正确值的右偏移量,真正的值会加上这个偏移量,默认为0
|
||||
// 5 定位到该字段后,往上回溯的层级(往上数祖先节点,如果当前字段没有匹配到标签的起始位置也要算一个节点),具体是要找到包含当前页各字段的那部分代码(本页要求的如 vod_id, vod_name vod_pic)
|
||||
"vod_id": ["href=\"/detail/", ".html",0,0,3],
|
||||
//(选填) 视频名
|
||||
"vod_name": ["title=\"", "\""],
|
||||
//(选填) 图片
|
||||
"vod_pic":["data-original=\"", "\""],
|
||||
//(选填) 副标题
|
||||
"vod_remarks":["<span class=\"pic-text text-right\">","</span>"]
|
||||
},
|
||||
//(选填) 详情页
|
||||
"detail":{
|
||||
//(选填) 当前页面解析区域截取,程序会从截取后的数据中查找各字段,这里只是演示,按实际需求填写
|
||||
"region":["<html>", "</html>"],
|
||||
//(选填) 详情页的url, 不存在时会使用list.vod_id进行推算
|
||||
"url": "https://www.zxzj.vip/detail/{vid}.html",
|
||||
//(选填) 视频名
|
||||
"vod_name":["<h1 class=\"title\">", "</h1>"],
|
||||
//(选填) 视频图片
|
||||
"vod_pic": ["<img class=\"lazyload\" data-original=\"","\""],
|
||||
//(选填) 演员
|
||||
"vod_actor":[">主演:","</p>"],
|
||||
//(选填) 导演,需要有一个字段说明回溯层级,一般选用导演字段
|
||||
"vod_director":[">导演:", "</p>",0,0,2],
|
||||
//(选填) 地区
|
||||
"vod_area":["地区:", "/"],
|
||||
//(选填) 年份
|
||||
"vod_year":["年份:", "/"],
|
||||
//(选填) 类型
|
||||
"vod_type":["类型:", "/"],
|
||||
//(选填)
|
||||
"vod_remarks":["更新:","</p>"],
|
||||
//(选填) 视频简介
|
||||
"vod_content":["简介:","</p>"]
|
||||
},
|
||||
//(选填) 播放列表页
|
||||
"playlist":{
|
||||
//(选填) 当前页面解析区域截取,程序会从截取后的数据中查找各字段,这里只是演示,按实际需求填写
|
||||
"region":["<html>", "</html>"],
|
||||
//(选填) 当sort为1时会对找到播放列表进行倒序
|
||||
"sort": 0,
|
||||
//(选填) 播放列表页的url, 一般都和详情页的地址一样,有部分网站的播放页和详情页不同时才填这个字段
|
||||
"url": "https://www.zxzj.vip/detail/{vid}.html",
|
||||
//(选填) 播放url的字段规则,这里需要回溯到包含单个播放源全部play_url的html节点
|
||||
"vod_play_url": ["i><a href=\"/video/", "\"",-7,0,2],
|
||||
//(选填) 播放地址的名称
|
||||
"vod_play_url_title": [".html\">", "<"],
|
||||
//(选填) 播放源的名称,如果有的话需要,查找到的播放列表会根据该字段的内容顺序进行排序
|
||||
"vod_play_from": [
|
||||
// 如果播放源的名称不能保证在页面上是唯一的
|
||||
["<h3>播放线路4</h3>", "播放线路4(别名)"],
|
||||
"迅雷云盘", "百度网盘", ["DP播放"] , "播放线路3", "CK播放"
|
||||
]
|
||||
},
|
||||
//(选填) 播放页,不用去管,用来尝试解析直链的
|
||||
"play":{
|
||||
//(选填) 当前页面解析区域截取,程序会从截取后的数据中查找各字段,这里只是演示,按实际需求填写
|
||||
"region":["<html>", "</html>"],
|
||||
// (选填) 嗅探关键字,有的网站视频url有特殊关键字的可以在这里指明
|
||||
"keywords":[".mp4", ".m3u8", ".flv"]
|
||||
},
|
||||
//(选填) 搜索页 search 不存在时会先去尝试json搜索接口,如果网站不支持再去页面上找搜索页的url
|
||||
"search":{
|
||||
//(选填) 当前页面解析区域截取,程序会从截取后的数据中查找各字段,这里只是演示,按实际需求填写
|
||||
"region":["<html>", "</html>"],
|
||||
// 搜索页的URL
|
||||
"url": "https://zxzj.vip/vodsearch/-------------.html?wd={wd}",
|
||||
//(选填) 视频ID
|
||||
"vod_id": ["/detail/", ".html",0,0,3],
|
||||
//(选填) 视频名
|
||||
"vod_name": ["title=\"", "\""],
|
||||
//(选填) 图片
|
||||
"vod_pic":["data-original=\"", "\""],
|
||||
//(选填) 副标题
|
||||
"vod_remarks":["<span class=\"pic-text text-right\">","</span>"]
|
||||
},
|
||||
// json格式的搜索接口示例
|
||||
// "search":{
|
||||
// "url": "https://www.llyady.cc/index.php/ajax/suggest?mid=1&wd={wd}",
|
||||
// "lookback": 3,
|
||||
// "vod_id": "id",
|
||||
// "vod_name": "name",
|
||||
// "vod_pic":"pic"
|
||||
//}
|
||||
//(选填) 过滤相关规则,需要配合list.url使用
|
||||
// Filters =======================================================
|
||||
"filter": {
|
||||
"1": [
|
||||
{
|
||||
@ -326,4 +380,5 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user