厂长资源.js 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // 地址发布页 https://www.czzy.site
  2. // 地址发布页 https://cz01.vip
  3. var rule = {
  4. title: '厂长资源',
  5. //host: 'https://www.czzy88.com',
  6. host:'https://www.czzy.site',
  7. //hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});HOST = html.match(/推荐访问<a href="(.*)"/)[1];print("厂长跳转地址 =====> " + HOST)',
  8. hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"li:eq(3)&&a&&href");print(src);HOST=src',
  9. url: '/fyclassfyfilter',
  10. filterable: 1,//是否启用分类筛选,
  11. filter_url: '{{fl.cateId}}{{fl.class}}{{fl.area}}/page/fypage',
  12. filter: 'H4sIAAAAAAAAA42V3U7iQBTH36XXJt77KhtjBql0EFqlHbUYE79AQEXcVfwiarJi8QOVNborUniZTluufIXtiO1U7LRe9KLT3/+cOWfO/LvIpaU5yE/EFG7sxyI3zavcGAcyPOBGOBGkeecNF/JW69V5nwMpxL9jc84yAcjXXKO/1uCWRgaro264CZnPQF4ezQpAnHSehIJgEgLxQ2bdHPX3e2a5YW9X2OK4qrr83hPWWyGkE1oWYBJR3tbyuKiFSCQBAbeKUsPae2WzCSSRIrzw+EQ32lpo+HTS3Uq3HApmXNA8qIeCggv2z67CwXkv5NNffFF14LdOAeeejdfqW6cYIkRARaSVKhQTbqnbZfu+GdX/NA+dHg1JzVvNKT5KmoExXhxWHtTN2m2UkozVl6SkOSd6lJQIvmrtzdY3tFMgoNTH/e9ljX/t7wNuX0Yp+RSSZDgkNXrrln5gVu+j1OTigTgYzlw6Nzd7+EKL7DOCKgJi1hkPcda9AkbnGO8eGv9+4a02tzROxAP3mEwBWab24XgHPt38ZB8+3xgZeAlRD4Ke23cPH6t0HwpIyKOTJH0Seixe71k39WCWV3iFgvmf/aOrYDANpAXiSh5b1My1XDCbRLOkeR5aahh6LRiNS1kk+Umzc8Mi0/70Ax8KJgWBcuU83vkTzKWgY4SU3LmwfzMKSqD3I/WVVNkyl7VgWJHExMKn+qs14kKB8AJxYg+sb+AXRlGzkOyAonfPuN1ktB8CxZ/fXKmYy9VgdhrFaH5z9daq7jI2isiVoOhazi4y+koOX+Z9aMlcPWakJ6jk32vh0GgXg2Hyh8wKPG2C2dyyC6eMI5v3YZdG9zwYm0fOVHuktdLtH3cZ2QEUfQdgFVrM+Qfw0/xbpXtLvw5Gp5ySEG2rdda0ihuMsZ6hmLbLHJRpOvxW+xrr+8yAydQMDWnXe9Rmhs8+RrFexbl6wZga97D+2aPxUmFgKnHB8aX/CTefD1IJAAA=',
  13. searchUrl: '/daoyongjiekoshibushiyoubing?q=**&f=_all&p=fypage',
  14. searchable: 2,
  15. filterable: 0,
  16. headers: {
  17. 'User-Agent': 'PC_UA',
  18. // 'Cookie': 'esc_search_captcha=1'
  19. },
  20. class_name: '全部&高分影视&最新电影&电影&电视剧&动画&国产剧&日剧&韩剧&美剧&海外剧&俄罗斯电影&加拿大电影&华语电影&印度电影&日本电影&欧美电影&韩国电影',
  21. class_url: 'movie_bt&gaofenyingshi&zuixindianying&/movie_bt_series/dyy&/movie_bt_series/dianshiju&/movie_bt_series/dohua&/movie_bt_series/guochanju&/movie_bt_series/rj&/movie_bt_series/hj&/movie_bt_series/mj&/movie_bt_series/hwj&/movie_bt_series/eluosidianying&/movie_bt_series/jianadadianying&/movie_bt_series/huayudianying&/movie_bt_series/yindudianying&/movie_bt_series/ribendianying&/movie_bt_series/meiguodianying&/movie_bt_series/hanguodianying',
  22. play_parse: true,
  23. // lazy代码:源于海阔香雅情大佬 / 小程序:香情影视 https://pastebin.com/L4tHdvFn
  24. lazy: `js:
  25. pdfh = jsp.pdfh;
  26. var html = request(input);
  27. var ohtml = pdfh(html, '.videoplay&&Html');
  28. var url = pdfh(ohtml, "body&&iframe&&src");
  29. if (url) {
  30. var _obj={};
  31. eval(pdfh(request(url),'body&&script&&Html')+'\\n_obj.player=player;_obj.rand=rand');
  32. function js_decrypt(str, tokenkey, tokeniv) {
  33. eval(getCryptoJS());
  34. var key = CryptoJS.enc.Utf8.parse(tokenkey);
  35. var iv = CryptoJS.enc.Utf8.parse(tokeniv);
  36. return CryptoJS.AES.decrypt(str, key, {iv: iv,padding: CryptoJS.pad.Pkcs7}).toString(CryptoJS.enc.Utf8);
  37. };
  38. let config = JSON.parse(js_decrypt(_obj.player,'VFBTzdujpR9FWBhe', _obj.rand));
  39. input = {
  40. jx: 0,
  41. url: config.url,
  42. parse: 0
  43. };
  44. }else if (/decrypted/.test(ohtml)) {
  45. var phtml = pdfh(ohtml, "body&&script:not([src])&&Html");
  46. eval(getCryptoJS());
  47. var script = phtml.match(/var.*?\\)\\);/g)[0];
  48. var data = [];
  49. eval(script.replace(/md5/g, 'CryptoJS').replace('eval', 'data = '));
  50. input = {
  51. jx: 0,
  52. url: data.match(/url:.*?['"](.*?)['"]/)[1],
  53. parse: 0
  54. }
  55. }
  56. `,
  57. 推荐: '.bt_img;ul&&li;*;*;*;*',
  58. double: true,
  59. 一级: '.bt_img&&ul&&li;h3.dytit&&Text;img.lazy&&data-original;.jidi&&Text;a&&href',
  60. 二级: {
  61. "title": "h1&&Text;.moviedteail_list li&&a&&Text",
  62. "img": "div.dyimg img&&src",
  63. "desc": ".moviedteail_list li:eq(3) a&&Text;.moviedteail_list li:eq(2) a&&Text;.moviedteail_list li:eq(1) a&&Text;.moviedteail_list li:eq(7)&&Text;.moviedteail_list li:eq(5)&&Text",
  64. "content": ".yp_context&&Text",
  65. "tabs": ".mi_paly_box span",
  66. "lists": ".paly_list_btn:eq(#id) a"
  67. },
  68. 搜索: `js:
  69. let cookie = getItem(RULE_CK,'');
  70. // let cookie = '';
  71. log('储存的cookie:'+cookie);
  72. let hhtml=request(input,{withHeaders:true,headers:{Cookie:cookie}});
  73. let json = JSON.parse(hhtml);
  74. let html = json.body;
  75. let setCk = Object.keys(json).find(it=>it.toLowerCase()==='set-cookie');
  76. cookie = setCk ? json[setCk] : cookie;
  77. // 3个set-Cookie
  78. if (Array.isArray(cookie)) {
  79. cookie = cookie.join(';');
  80. }
  81. cookie = cookie.split(';')[0];
  82. log('set-cookie:'+cookie);
  83. let code='';
  84. if(/erphp-search-captcha/.test(html)){
  85. code = jsp.pdfh(html,'.erphp-search-captcha--button&&Text');
  86. if(code.includes('=')){
  87. let a = code.replace('=','').replace(/ /g,'');
  88. code = eval(a);
  89. log('回答验证码:'+a+' 答案:'+code);
  90. }
  91. let key = jsp.pdfh(html,'.erphp-search-captcha&&input&&name');
  92. let body = key+'='+code;
  93. post(input,{body:body,headers:{Cookie:cookie}});
  94. setItem(RULE_CK,cookie);
  95. html = getHtml(input);
  96. }
  97. // log(html);
  98. VODS = [];
  99. let lis=pdfa(html,'.search_list&&ul&&li');
  100. log(lis.length);
  101. lis.forEach(function(it){
  102. VODS.push({
  103. vod_id: pd(it,'a&&href',input),
  104. vod_name: pdfh(it,'h3.dytit&&Text'),
  105. vod_pic: pd(it,'img.lazy&&data-original',input),
  106. vod_remarks: pdfh(html,'.jidi&&Text')
  107. });
  108. });
  109. `,
  110. }