123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- //过验证失败
- function verifyLogin(url) {
- let cnt = 0;
- let cookie = '';
- let r = Math.random();
- let yzm_url = getHome(url) + '/index.php/verify/index.html';
- log(`验证码链接:${yzm_url}`);
- let submit_url = getHome(url) + '/index.php/ajax/verify_check';
- log(`post登录链接:${submit_url}`);
- while (cnt < OCR_RETRY) {
- try {
- let {cookie, html} = reqCookie(yzm_url + '?r=' + r, {toBase64: true});
- let code = OcrApi.classification(html);
- log(`第${cnt + 1}次验证码识别结果:${code}`);
- html = post(submit_url, {
- headers: {Cookie: cookie},
- body: 'type=show&verify=' + code,
- });
- html = JSON.parse(html);
-
- if (html.code === 1) {
- log(`第${cnt + 1}次验证码提交成功`);
- log(cookie);
- return cookie // 需要返回cookie
- } else if (html.code !== 1 && cnt + 1 >= OCR_RETRY) {
- cookie = ''; // 需要清空返回cookie
- }
- } catch (e) {
- log(`第${cnt + 1}次验证码提交失败:${e.message}`);
- if (cnt + 1 >= OCR_RETRY) {
- cookie = '';
- }
- }
- cnt += 1
- }
- return cookie
- }
- globalThis.verifyLogin = verifyLogin;
- Object.assign(muban.mxpro.二级,{
- tabs: '.tab-item',
- });
- var rule = {
- 模板:'mxpro',
- title: '耐看点播',
- host: 'https://www.nkdvd.com',
- //url: '/vodshow/fyfilter.html',
- url: '/vodshow/id/fyclass/page/fypage.html',
- //https://www.nkdvd.com/vodshow/area/美国/by/hits/class/剧情/id/31/page/2/year/2023.html
- searchUrl: '/vodsearch/**----------fypage---.html',
- cate_exclude:'今日更新|发布页|热榜||热搜榜|深夜福利|美女成人直播',
- filter:'H4sIAAAAAAAAA+1a3U4bRxh9ldVeczHrxfa4D9EXqHKRCyJVTXPVVq2iSID5M1BsEJiQmkAFxkD4sZOUwlprv4xn136Lrplh5/u+jbS2BIVEc8f5ztHM7Jnx+HxeXlt2htnfWT9Yry37p6k/oj/tsNUW71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25eMeiFBKlCyTAGx4ln2E8ggJ8XoKzxjBhQQE+bjIZIQF/7BYyvUHsH09DhYIoWhV9cT2rQ5WE4zUR6e1ferOb3u6M0NzNXImiPqoKjtcypbduIzTM6U1mavuX3jCnN2Yj/DyQ2tqnN90jt1MzncE73RQoOMqPFQ/XZKnO5LAx2Fmg7YosmpbMtGS4Yloy05KZlsy0ZKpgWjLTktlPsiXL2Lgl+5/fb6UGx3t5N5XeWKSGcVFZExcftELC8RqtEd741Dz0XknCMduoUWPEIwXk9HB7HxH6IePvvcRQEzJNyDQh04RMEzJNyPzWQ6ZrP2bIDGt70WOEjWmdKOIKDhWfejcVECpu4XhBsj/XEuUDOJeuoIBQXRSr4FdXCUkIGhzswRA0hF//P5M8ZDAzvyCacCcLJtyZcGfCnSqYcGfC3cOFu0nbhLunH+6e4ktsEwVNFDRR0ERBEwVNFDRR8BuIglkbR8Gv8TGsN/8Bquf/w1A7AAA=',
- //filter_url:'{{fl.地区}}-{{fl.排序}}-{{fl.剧情}}-{{fl.语言}}-{{fl.字母}}---fypage---{{fl.年份}}',
- filter_url:'area/{{fl.地区}}/by/{{fl.排序}}/class/{{fl.剧情}}/id/{{fl.类型}}/page/fypage/year/{{fl.年份}}',
- filter_def:{
- 20: {cateId: '20'},
- 21: {cateId: '21'},
- 22: {cateId: '22'},
- 23: {cateId: '23'},
- 24: {cateId: '24'},
- 25: {cateId: '25'}
- },
- filterable:1,
- 一级:'.module-items&&a;.module-poster-item-title&&Text;.lazy&&data-original;.module-item-note&&Text;a&&href',
- /*一级: $js.toString(() => {
- let cookie = getItem(RULE_CK, '');
- //log('储存的cookie:' + cookie);
-
- let ret = request(MY_URL, {
- headers: {
- Referer: encodeUrl(MY_URL),
- Cookie: cookie,
- }
- });
- if (/系统安全验证/.test(ret)) {
- //log(ret);
- cookie = verifyLogin(MY_URL);
- if (cookie) {
- log(`本次成功过验证,cookie:${cookie}`);
- setItem(RULE_CK, cookie);
- } else {
- log(`本次验证失败,cookie:${cookie}`);
- }
- ret = request(MY_URL, {
- headers: {
- Referer: encodeUrl(MY_URL),
- Cookie: cookie,
- }
- });
- }
- //log(ret);
- let d = [];
- let p = rule.一级二.split(';');
- let arr = pdfa(ret, p[0]);//列表
- arr.forEach(it => {
- d.push({
- title: pdfh(it, p[1]),//标题
- pic_url: pdfh(it, p[2]),//图片
- desc: pdfh(it, p[3]),//描述
- url: pdfh(it, p[4]),//链接
-
- });
- });
- setResult(d);
- }),*/
- 搜索验证标识:'系统安全验证',
- }
|