123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- {
- //规则名
- "规则名": "看了么",
- //作者
- "规则作者": "戒不掉的微笑",
-
- "请求头参数":"PC_UA",
- //网页编码格式默认UTF-8编码,UTF-8,GBK,GB2312
- "网页编码格式":"UTF-8",
- //图片是否需要代理
- "图片是否需要代理":"0",
- //是否开启获取首页数据,0关闭,1开启
- "是否开启获取首页数据":"1",
- //分类链接起始页码,禁止负数和含小数点。
- "分类起始页码": "1",
- //分类链接,{cateId}是分类,{catePg}是页码,第一页没有页码的可以这样写 第二页链接[firstPage=第一页的链接]
- "分类链接": "https://www.ksksl.com/show/{cateId}/area/{area}/page/{catePg}.html",
- //分类名,分类1&分类2&分类3
- "分类名称": "电影&电视剧&综艺&动漫&纪录片",
- //分类名替换词,替换词1&替换词2&替换词3,替换词包含英文&的用两个中文&&代替,示例:&&id=0&&&id=1
- "分类名称替换词": "dy&tv&zy&dm&jl",
- //筛选数据,json格式,参考xpath的筛选写法
- "筛选数据":{"dy": [
-
- {
- "key": "area",
- "name": "地区",
- "value": [
- {"n": "全部","v": ""},
- {"n": "中国大陆","v": "中国大陆"},
- {"n": "中国香港","v": "中国香港"},
- {"n": "中国台湾","v": "中国台湾"},
- {"n": "欧美","v": "欧美"},
- {"n": "韩国","v": "韩国"},
- {"n": "日本","v": "日本"},
- {"n": "泰国","v": "泰国"},
- {"n": "印度","v": "印度"},
- {"n": "俄罗斯","v": "俄罗斯"},
- {"n": "其他","v": "其他"}
- ]
- },
- {
- "key": "year",
- "name": "年份",
- "value": [
- {"n": "全部","v": ""},
- {"n": "2022","v": "2022"},
- {"n": "2021","v": "2021"},
- {"n": "2020","v": "2020"},
- {"n": "2019","v": "2019"},
- {"n": "2018","v": "2018"},
- {"n": "2017","v": "2017"},
- {"n": "2016","v": "2016"},
- {"n": "2015","v": "2015"},
- {"n": "2014","v": "2014"},
- {"n": "2013","v": "2013"},
- {"n": "2012","v": "2012"},
- {"n": "2011","v": "2011"}
- ]
- }
- ],
- "tv": [
-
- { "key":"area", "name":"地区", "value":[
- { "n":"全部", "v":"" },
- {"n":"中国大陆", "v":"中国大陆" },
- {"n":"中国香港", "v":"中国香港" },
- { "n":"中国台湾", "v":"中国台湾" },
- { "n":"美国", "v":"美国" },
- { "n":"日本", "v":"日本"},
- { "n":"韩国", "v":"韩国" },
- {"n":"英国", "v":"英国" },
- {"n":"法国", "v":"法国" }
- ] },
- {
- "key": "year",
- "name": "年份",
- "value": [
- {"n": "全部","v": ""},
- {"n": "2022","v": "2022"},
- {"n": "2021","v": "2021"},
- {"n": "2020","v": "2020"},
- {"n": "2019","v": "2019"},
- {"n": "2018","v": "2018"},
- {"n": "2017","v": "2017"},
- {"n": "2016","v": "2016"},
- {"n": "2015","v": "2015"},
- {"n": "2014","v": "2014"},
- {"n": "2013","v": "2013"},
- {"n": "2012","v": "2012"},
- {"n": "2011","v": "2011"}
- ]
- }
- ],
- "dm": [
- {
- "key": "year",
- "name": "年份",
- "value": [
- {"n": "全部","v": ""},
- {"n": "2022","v": "2022"},
- {"n": "2021","v": "2021"},
- {"n": "2020","v": "2020"},
- {"n": "2019","v": "2019"},
- {"n": "2018","v": "2018"},
- {"n": "2017","v": "2017"},
- {"n": "2016","v": "2016"},
- {"n": "2015","v": "2015"},
- {"n": "2014","v": "2014"},
- {"n": "2013","v": "2013"},
- {"n": "2012","v": "2012"},
- {"n": "2011","v": "2011"}
- ]
- }
- ]
- },
-
- //分类页面截取数据模式,0为json,其它数字为普通网页。
- "分类截取模式": "1",
- //分类列表数组定位,最多支持3层,能力有限,不是所有页面都能支持
- "分类列表数组规则": ".row-list&&.dx-vod",
- //分类片单信息jsoup与正则截取写法切换,只作用于html网页,1为jsoup写法(默认),0为正则截取写法
- "分类片单是否Jsoup写法":"1",
- //分类片单标题
- "分类片单标题": "a&&title",
- //分类片单链接
- "分类片单链接": "a&&href",
- //分类片单图片,支持自定义图片链接
- "分类片单图片": "a&&data-original",
- //分类片单副标题
- "分类片单副标题":".vod_remarks&&Text",
- //分类片单链接补前缀
- "分类片单链接加前缀": "https://www.ksksl.com",
- //分类片单链接补后缀
- "分类片单链接加后缀": "",
-
- //搜索请求头参数,不填则默认okhttp/3.12.11,可填MOBILE_UA或PC_UA使用内置的手机版或电脑版UA"
- //多个请求头参数写法示例,键名$键值,每一组用#分开。"User-Agent$PC_UA#Referer$http://ww.baidu.com#Cookie$ser=ok"。
- "搜索请求头参数":"User-Agent$PC_UA",
- //搜索链接,搜索关键字用{wd}表示,post请求的最后面加;post
- //POST链接示例 http://www.lezhutv.com/index.php?m=vod-search;post
- "搜索链接": "https://www.ksksl.com/ch.html?wd={wd}",
- //POST搜索Params参数,只支持utf-8编码的请求,填写搜索关键字的键值,一般常见的是searchword和wd,不是POST搜索的可留空或删除。
- "POST请求数据":"wd={wd}&search=",
-
- //搜索截取模式,0为json搜索,只支持列表在list数组里的,其它数字为网页截取。
- "搜索截取模式": "1",
- //搜索列表数组定位,不填默认内置list,最多支持3层,能力有限,不是所有页面都能支持。
- "搜索列表数组规则": ".row-list&&.dx-vod",
- //搜索片单信息jsoup与正则截取写法切换,只作用于html网页,1为jsoup写法(默认),0为正则截取写法
- "搜索片单是否Jsoup写法":"1",
- //搜索片单图片,支持自定义图片链接
- "搜索片单图片": "a&&data-original",
- //搜索片单标题
- "搜索片单标题": "a&&title",
- //搜索片单链接
- "搜索片单链接": "a&&href",
- //搜索片单副标题
- "搜索片单副标题":".vod_remarks&&Text",
- //搜索片单链接补前缀
- "搜索片单链接加前缀": "https://www.ksksl.com",
- //搜索片单链接补后缀,这个一般json搜索的需要
- "搜索片单链接加后缀": "",
-
- //片单链接是否直接播放,0否,1分类片单链接直接播放,2详情选集链接直接播放。
- //设置成直接播放后,后面3个参数请注意该留空的请务必留空。
- "链接是否直接播放": "0",
- //直接播放链接补前缀
- "直接播放链接加前缀": "https://live.52sf.ga/huya/",
- //直接播放链接补后缀,设置为#isVideo=true#可强制识别为视频链接
- "直接播放链接加后缀": "#isVideo=true#",
- //直接播放链接设置请求头,只对直链视频有效,每一组用#分开
- "直接播放直链视频请求头": "authority$ku.peizq.online#Referer$https://play.peizq.online",
-
- //项目信息jsoup与正则截取写法切换,1为jsoup写法(默认),0为正则截取写法
- "详情是否Jsoup写法":"1",
- //类型数据,截取前缀&&截取后缀
- "类型详情": ".tag-link,1&&Text",
- //年代数据,截取前缀&&截取后缀
- "年代详情": ".tag-link,2&&Text",
- //地区数据,截取前缀&&截取后缀
- "地区详情": ".tag-link,3&&Text",
- //演员数据,截取前缀&&截取后缀
- "演员详情": ".info-items,1&&Text!演员",
- //简介内容,截取前缀&&截取后缀
- "简介详情": ".vod_content&&Text",
-
- //线路截取区域,如果不需要请把tab_title或tab_arr_rule置空或者全部不要填。
- //线路截取数组
- "线路列表数组规则": ".container.clearfix&&.player_info",
- //线路标题,截取前缀&&截取后缀
- "线路标题": "h2&&Text",
-
- //列表数组截取,必须
- "播放列表数组规则": ".container.clearfix&&.play_li.fn-clear",
- //集数数组截取,必须
- "选集列表数组规则": "a",
- //集数标题与链接jsoup与正则截取写法切换,1为jsoup写法(默认),0为正则截取写法
- "选集标题链接是否Jsoup写法":"1",
- //集数标题,截取前缀&&截取后缀
- "选集标题": "a&&Text",
- //集数链接,截取前缀&&截取后缀
- "选集链接": "a&&href",
- //选集是否反转显示
- "是否反转选集序列": "0",
- //集数链接补前缀
- "选集链接加前缀": "https://www.ksksl.com",
- //集数链接补后缀
- "选集链接加后缀": "",
-
- //下面几个参数请勿乱用。否则可能会有副作用。
- //分析网页源码中有<script type="text/javascript">var player_aaaa={"flag":"play","encrypt这种源码的链接解析
- //如果网页源码里没有这种请设置为0
- "分析MacPlayer":"1",
- //是否开启手动嗅探,只对网页嗅探有效,0否,1是
- "是否开启手动嗅探":"0",
- //手动嗅探视频链接关键词,每个用#隔开
- "手动嗅探视频链接关键词":".mp4#.m3u8#.flv",
- //手动嗅探视频链接过滤关键词,每个用#隔开
- "手动嗅探视频链接过滤词":".html#=http"
- }
|