电影先生.js 1.3 KB

12345678910111213141516171819202122232425
  1. var rule = {
  2. title:'电影先生',
  3. host:'http://dyxs20.com',
  4. // homeUrl:'/',
  5. url:'/pianku-fyclass--------fypage---/',
  6. searchUrl:'/search-**-----------fypage--/',
  7. searchable:2,//是否启用全局搜索,
  8. quickSearch:0,//是否启用快速搜索,
  9. filterable:0,//是否启用分类筛选,
  10. headers:{//网站的请求头,完整支持所有的,常带ua和cookies
  11. 'User-Agent':'MOBILE_UA',
  12. // "Cookie": "searchneed=ok"
  13. },
  14. //class_name:'电影&电视剧&动漫&综艺',
  15. //class_url:'dianying&dianshiju&dongman&zongyi',
  16. class_parse:'.swiper&&ul&&li;a&&Text;a&&href;/v/(.*)/',
  17. play_parse:true,
  18. lazy:'',
  19. limit:6,
  20. 推荐:'.module-items;.module-item&&.module-item-cover;img&&alt;img&&data-src;.module-item-text&&Text;a&&href',
  21. double:true, // 推荐内容是否双层定位
  22. 一级:'.module-items;img&&alt;img&&data-src;.module-item-text&&Text;a&&href',
  23. 二级:{"title":"h1&&Text;.video-info-main&&spann:eq(0)&&Text;.video-info-main&&span:eq(2)&&Text","img":".mobile-play&&img&&data-src","desc":".video-info-main&&span:eq(3)&&Text;.video-info-main&&span:eq(5)&&Text;.video-info-main&&span:eq(7)&&Text","content":".video-info-content&&Text","tabs":".module-tab-content&&span","lists":".sort-item:eq(#id) a"},
  24. 搜索:'.module-items;h3&&Text;img&&data-src;a&&Text;a&&href',
  25. }