厂长资源.js 2.4 KB

1234567891011121314151617181920212223242526
  1. var rule={
  2. title:'厂长资源',
  3. host:'https://czspp.com',
  4. url:'/fyclass/page/fypage',
  5. searchUrl:'/xssearch?q=**&f=_all&p=fypage',
  6. searchable:2,
  7. filterable:0,
  8. headers:{'User-Agent':'PC_UA', },
  9. class_name:'本月热门&高分影视&豆瓣电影Top250&最新电影&热映中&电视剧&国产剧&美剧&韩剧&日剧&海外剧&番剧&动漫&韩国电影&纪录片',
  10. 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',
  11. 推荐:'.bt_img;ul&&li;*;*;*;*',
  12. double:true,
  13. 一级:'.bt_img&&ul&&li;h3.dytit&&Text;img.lazy&&data-original;.jidi&&Text;a&&href',
  14. 二级:{
  15. "title": "h1&&Text;.moviedteail_list li&&a&&Text",
  16. "img": "div.dyimg img&&src",
  17. // "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",
  18. "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",
  19. "content": ".yp_context&&Text",
  20. "tabs": ".mi_paly_box span",
  21. "lists": ".paly_list_btn:eq(#id) a"
  22. },
  23. 搜索:'.search_list&&ul&&li;*;*;*;*',
  24. 预处理:'rule_fetch_params.headers.Cookie="68148872828e9f4d64e7a296f6c6b6d7=5429da9a54375db451f7f9e4f16ce0ea";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)}',
  25. }