//写法思路来自biubiu影院,海阔视界,xpath筛选。 { //规则名 "title": "电影先生", //作者 "author": "认真の雪", //请求UA "UserAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36", //分类链接起始页码,禁止负数于合含小数点。 "firstpage": "1", //分类链接,{cateId}是分类,{catePg}是页码,第一页没有页码的可以这样写 第二页链接[firstPage=第一页的链接] "class_url": "https://dyxs21.com/pianku-{cateId}-{area}-{by}-{class}-{lang}----{catePg}---{year}/", //分类名 "class_name": "电视剧&电影&动漫&综艺", //分类名替换词,替换词中有英文&的用两个中文&&代替 "class_value": "dianshiju&dianying&dongman&zongyi", //筛选数据,json格式,参考xpath的筛选写法 "filterdata":{}, //分类是否二次截取 "cat_YN_twice": "0", //分类二次截取前 "cat_twice_pre": "空", //分类二次截取后 "cat_twice_suf": "空", //分类数组截取前 "cat_arr_pre": "class=\"module-item", //分类数组截取后 "cat_arr_suf": "/div>", //分类截取片单图片,截取前缀&&截取后缀 "cat_pic": "data-src=\"&&\"", //分类截取片单标题,截取前缀&&截取后缀 "cat_title": "title=\"&&\"", //分类截取片单副标题,截取前缀&&截取后缀 "cat_subtitle": "class=\"module-item-text\">&&<", //分类截取片单链接,截取前缀&&截取后缀 "cat_url": "href=\"&&\"", //分类片单链接补前缀 "cat_prefix": "https://dyxs21.com", //分类片单链接补后缀 "cat_suffix": "", //搜索链接,搜索关键字用{wd}表示,post请求的最后面加;post "search_url": "https://dyxs21.com/index.php/ajax/suggest?mid=1&wd={wd}&limit=50", //搜索模式,0为json搜索,只支持列表在list数组里的,其它为网页截取。 "search_mode": "0", //json片单图片 "jsonpic": "pic", //json片单标题 "jsonname": "name", //json片单链接 "jsonid": "id", //json片单副标题,这个很少有,预留着 "jsonstitle":"", //搜索是否二次截取 "sea_YN_twice": "0", //搜索二次截取前 "sea_twice_pre": "空", //搜索二次截取后 "sea_twice_suf": "空", //搜索数组前缀 "sea_arr_pre": "", //搜索数组后缀 "sea_arr_suf": "", //搜索片单图片,截取前缀&&截取后缀 "sea_pic": "", //搜索片单标题,截取前缀&&截取后缀 "sea_title": "", //搜索片单链接,截取前缀&&截取后缀 "sea_url": "", //搜索片单链接补前缀 "search_prefix": "https://dyxs21.com/show-", //搜索片单链接补后缀,这个一般json搜索的需要 "search_suffix": "/", //搜索副标题,截取前缀&&截取后缀 "sea_subtitle": "", //片单链接是否直接播放,1是直接播放。 "force_play": "0", //直接播放链接补前缀 "play_prefix": "", //直接播放链接补后缀,设置为#isVideo=true#可强制识别为视频链接 "play_suffix": "", //直接播放链接设置请求头,每一组用#分开 "play_header": "", //演员数据,截取前缀&&截取后缀 "proj_actor": "主演:&&class=\"video-info-items", //简介内容,截取前缀&&截取后缀 "proj_plot": "", //线路标题,截取前缀&&截取后缀 "tab_title": "\">&&", //列表是否二次截取 "list_YN_twice": "0", //列表二次截取前 "list_twice_pre": "", //列表二次截取后 "list_twice_suf": "", //列表数组截取前 "list_arr_pre": "class=\"module-blocklist scroll-box scroll-box-y", //列表数组截取后 "list_arr_suf": "", //集数是否二次截取 "epi_YN_twice": "0", //集数二次截取前 "epi_twice_pre": "空", //集数二次截取后 "epi_twice_suf": "空", //集数数组截取前 "epi_arr_pre": "", //集数标题,截取前缀&&截取后缀 "epi_title": "&&<", //集数链接,截取前缀&&截取后缀 "epi_url": "href=\"&&\"", //集数链接补前缀 "epiurl_prefix": "https://dyxs21.com", //集数链接补后缀 "epiurl_suffix": "" }