Add files via upload
This commit is contained in:
parent
f41a045e37
commit
0ecee26ffa
@ -1,11 +1,11 @@
|
|||||||
var rule = {
|
var rule = {
|
||||||
title:'KK網盤[磁]',
|
title:'KK網盤[磁]',
|
||||||
host:'https://www.kkpans.com',
|
host:'https://www.kkwnhub.com',
|
||||||
homeUrl:'/',
|
homeUrl:'/',
|
||||||
url: '/forum-fyclass-fypage.html?',
|
url: '/forum-fyclass-fypage.html?',
|
||||||
//host:'http://192.168.101.1:10078',
|
//host:'http://192.168.101.1:10078',
|
||||||
//homeUrl:'/p/0/s/https://www.kkpans.com/',
|
//homeUrl:'/p/0/s/https://www.kkwnhub.com/',
|
||||||
//url: '/p/0/s/https://www.kkpans.com/forum-fyclass-fypage.html?',
|
//url: '/p/0/s/https://www.kkwnhub.com/forum-fyclass-fypage.html?',
|
||||||
filter_url:'{{fl.class}}',
|
filter_url:'{{fl.class}}',
|
||||||
filter:{
|
filter:{
|
||||||
},
|
},
|
||||||
@ -16,7 +16,7 @@ var rule = {
|
|||||||
headers:{
|
headers:{
|
||||||
'User-Agent': 'Mozilla/5.0 (Linux; Android 10; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36',
|
'User-Agent': 'Mozilla/5.0 (Linux; Android 10; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36',
|
||||||
'Accept': '*/*',
|
'Accept': '*/*',
|
||||||
'Referer': 'https://www.kkpans.com/'
|
'Referer': 'https://www.kkwnhub.com/'
|
||||||
},
|
},
|
||||||
timeout:5000,
|
timeout:5000,
|
||||||
class_name:'国外电影&国外电视剧&纪录片资源&综艺资源&动漫资源&音乐资源',
|
class_name:'国外电影&国外电视剧&纪录片资源&综艺资源&动漫资源&音乐资源',
|
||||||
@ -35,9 +35,9 @@ var rule = {
|
|||||||
一级:`js:
|
一级:`js:
|
||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
let d = [];
|
let d = [];
|
||||||
log("kkpans input>>>>>>>>>>>>>>"+input);
|
log("kkwnhub input>>>>>>>>>>>>>>"+input);
|
||||||
let html = request(input);
|
let html = request(input);
|
||||||
//log("kkpans 1level html>>>>>>>>>>>>>>"+html);
|
//log("kkwnhub 1level html>>>>>>>>>>>>>>"+html);
|
||||||
let list = pdfa(html, 'div.threadlist ul li.list');
|
let list = pdfa(html, 'div.threadlist ul li.list');
|
||||||
list.forEach(function(it) {
|
list.forEach(function(it) {
|
||||||
d.push({
|
d.push({
|
||||||
@ -104,7 +104,7 @@ let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
|||||||
Object.assign(_fetch_params, withHeaders);
|
Object.assign(_fetch_params, withHeaders);
|
||||||
|
|
||||||
let new_html=request(rule.homeUrl + 'search.php?mod=forum', _fetch_params);
|
let new_html=request(rule.homeUrl + 'search.php?mod=forum', _fetch_params);
|
||||||
log('kkpans search new_html >>>>>>>>>>>>>>>>>>>>>' + new_html);
|
log('kkwnhub search new_html >>>>>>>>>>>>>>>>>>>>>' + new_html);
|
||||||
let json=JSON.parse(new_html);
|
let json=JSON.parse(new_html);
|
||||||
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
||||||
let cookie="";
|
let cookie="";
|
||||||
@ -112,7 +112,7 @@ if (typeof setCk !== "undefined"){
|
|||||||
let d=[];
|
let d=[];
|
||||||
for(const key in json[setCk]){
|
for(const key in json[setCk]){
|
||||||
if (typeof json[setCk][key] === "string"){
|
if (typeof json[setCk][key] === "string"){
|
||||||
log("kkpans header setCk key>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + json[setCk][key] + " " + (typeof json[setCk][key]));
|
log("kkwnhub header setCk key>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + json[setCk][key] + " " + (typeof json[setCk][key]));
|
||||||
d.push(json[setCk][key].split(";")[0]);
|
d.push(json[setCk][key].split(";")[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -120,22 +120,22 @@ if (typeof setCk !== "undefined"){
|
|||||||
}
|
}
|
||||||
fetch_params.headers.Cookie=cookie;
|
fetch_params.headers.Cookie=cookie;
|
||||||
rule_fetch_params.headers.Cookie=cookie;
|
rule_fetch_params.headers.Cookie=cookie;
|
||||||
log('kkpans search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie);
|
log('kkwnhub search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie);
|
||||||
//log('kkpans search body >>>>>>>>>>>>>>>>>>>>>' + json['body']);
|
//log('kkwnhub search body >>>>>>>>>>>>>>>>>>>>>' + json['body']);
|
||||||
|
|
||||||
new_html = json['body'];
|
new_html = json['body'];
|
||||||
|
|
||||||
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
||||||
log("kkpans formhash>>>>>>>>>>>>>>>" + formhash);
|
log("kkwnhub formhash>>>>>>>>>>>>>>>" + formhash);
|
||||||
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + encodeURIComponent(KEY);
|
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + encodeURIComponent(KEY);
|
||||||
_fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
_fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
let postData = {
|
let postData = {
|
||||||
body: params
|
body: params
|
||||||
};
|
};
|
||||||
Object.assign(_fetch_params, postData);
|
Object.assign(_fetch_params, postData);
|
||||||
log("kkpans search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
log("kkwnhub search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
let search_html = post(rule.homeUrl + 'search.php?mod=forum', _fetch_params)
|
let search_html = post(rule.homeUrl + 'search.php?mod=forum', _fetch_params)
|
||||||
//log("kkpans search result>>>>>>>>>>>>>>>" + search_html);
|
//log("kkwnhub search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
let d=[];
|
let d=[];
|
||||||
let dlist = pdfa(search_html, 'div.threadlist ul li.list');
|
let dlist = pdfa(search_html, 'div.threadlist ul li.list');
|
||||||
dlist.forEach(function(it){
|
dlist.forEach(function(it){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user