厂长资源.js 2.5 KB

12345678910111213141516171819202122232425262728
  1. var rule={
  2. title:'厂长资源',
  3. host:'https://czspp.com',
  4. url:'/fyclass/page/fypage',
  5. // searchUrl:'/xssearch?q=**&f=_all&p=fypage',
  6. // searchUrl:'/?#s=**;post',
  7. searchUrl:'/page/fypage?s=**',
  8. searchable:2,
  9. filterable:0,
  10. headers:{'User-Agent':'PC_UA', },
  11. class_name:'本月热门&高分影视&豆瓣电影Top250&最新电影&热映中&电视剧&国产剧&美剧&韩剧&日剧&海外剧&番剧&动漫&韩国电影&纪录片',
  12. class_url:'benyueremen&gaofenyingshi&dbtop250&zuixindianying&reyingzhong&dsj&gcj&meijutt&hanjutv&movie_bt_series/rj&movie_bt_series/hwj&fanju&dm&movie_bt_series/hanguodianying&movie_bt/movie_bt_tags/jlpp',
  13. // class_parse: '.navlist li:gt(0);a&&Text;a&&href;.*/(.*)',
  14. 推荐:'.bt_img;ul&&li;*;*;*;*',
  15. double:true,
  16. 一级:'.bt_img&&ul&&li;h3.dytit&&Text;img.lazy&&data-original;.jidi&&Text;a&&href',
  17. 二级:{
  18. "title": "h1&&Text;.moviedteail_list li&&a&&Text",
  19. "img": "div.dyimg img&&src",
  20. // "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) a&&Text;.moviedteail_list li:eq(5) a&&Text",
  21. "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",
  22. "content": ".yp_context&&Text",
  23. "tabs": ".mi_paly_box span",
  24. "lists": ".paly_list_btn:eq(#id) a"
  25. },
  26. 搜索:'.search_list&&ul&&li;*;*;*;*',
  27. 预处理:'rule_fetch_params.headers.Cookie="68148872828e9f4d64e7a296f6c6b6d7=5429da9a54375db451f7f9e4f16ce0ea;esc_search_captcha=1";let new_host="https://czspp.com";let new_html=request(new_host);if(/正在进行人机识别/.test(new_html)){let new_src=pd(new_html,"script&&src",new_host);log(new_src);let hhtml=request(new_src,{withHeaders:true});let json=JSON.parse(hhtml);let html=json.body;let key=html.match(new RegExp(\'var key="(.*?)"\'))[1];let avalue=html.match(new RegExp(\'value="(.*?)"\'))[1];let c="";for(let i=0;i<avalue.length;i++){let a=avalue[i];let b=a.charCodeAt();c+=b}let value=md5(c);log(value);let yz_url="https://czspp.com/a20be899_96a6_40b2_88ba_32f1f75f1552_yanzheng_ip.php?type=96c4e20a0e951f471d32dae103e83881&key="+key+"&value="+value;log(yz_url);hhtml=request(yz_url,{withHeaders:true});json=JSON.parse(hhtml);let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");let cookie=setCk?json[setCk].split(";")[0]:"";log("cookie:"+cookie);rule_fetch_params.headers.Cookie=cookie;setItem(RULE_CK,cookie)}',
  28. }