1 Star 0 Fork 5

上善若水/novel

forked from Curioucs/novel 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
防盗书源.json 25.07 KB
一键复制 编辑 原始数据 按行查看 历史
Curioucs 提交于 2022-07-07 03:40 . 防盗书源
[
{
"name": "💰番茄小说",
"site": "https://novel.snssdk.com/",
"group": "🎉2022/7/6",
"enabled": false,
"audio": false,
"weight": 0,
"params": {
"userAgent": "Mozilla/5.0 (Linux; Android 10; M2007J22C Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/83.0.4103.101 Mobile Safari/537.36"
},
"content": {
"content": {
"rule": "$..content",
"script": "paragraphs=utils.matchList(result,\"//p/text()\");result = \"\";for(var p in paragraphs ){result +=\"\t\"+paragraphs[p]+\"\\n\";}"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href"
},
"toc": {
"list": "$.data.item_data_list",
"name": "$.title",
"url": {
"rule": "$.item_id",
"script": "\"https://novel.snssdk.com/api/novel/book/reader/full/v1/?group_id=\"+result+\"&item_id=\"+result;"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href",
"enableNext": false,
"filter": false,
"reverse": false,
"autoNext": false,
"forceNext": false
},
"detail": {},
"search": {
"params": {
"url": "https://novel.snssdk.com/api/novel/channel/homepage/search/search/v1/?aid=13&q={{keyword}}",
"dynamicDelayTime": 500
},
"list": "$.data.ret_data",
"detail": {
"url": {
"rule": "$.book_id",
"script": "\"https://api5-normal-lf.fqnovel.com/reading/bookapi/directory/all_items/v/?need_version=true&book_id=\"+result+\"&iid=2665637677906061&aid=1967&app_name=novelapp&version_code=495\";"
},
"title": {
"rule": "$.title",
"replace": [
"<em>##",
"</em>##"
]
},
"author": "$.author",
"category": "$.category",
"wordCount": "$.score",
"introduce": "$.abstract",
"coverUrl": "$.thumb_url"
}
}
},
{
"name": "🎉西红柿小说",
"site": "https://www.fqxsw.org/",
"group": "🎉2022/7/6",
"enabled": false,
"audio": false,
"weight": 0,
"params": {},
"content": {
"content": "auto:1",
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href"
},
"toc": {
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href",
"enableNext": false,
"filter": true,
"reverse": false,
"autoNext": false,
"forceNext": false
},
"detail": {},
"search": {
"params": {
"url": "https://www.fqxsw.org/modules/article/search.php",
"method": "POST",
"charset": "UTF-8",
"mediaType": "application/x-www-form-urlencoded",
"body": "keyword={{keyword}}",
"dynamic": false,
"dynamicDelayTime": 500
},
"list": "//*[@id=\"main\"]/div[1]/ul/li[position()>1]",
"detail": {
"url": "///span[1]/a/@href",
"title": "///span[1]/a/allText()",
"author": "///span[3]/text()",
"latestChapterName": "///span[2]/a/text()",
"latestChapterUrl": "///span[2]/a/@href",
"coverUrl": {
"rule": "///span[2]/a/@href",
"script": "utils.match(result,\"regex:([0-9]+?/[0-9]+?)/##http://img.fqxsw.org/img/$1\\.jpg\");"
},
"state": "///span[5]/text()",
"updateTime": "///span[4]/text()"
}
}
},
{
"name": "🎉💰红袖",
"site": "https://appapi.hongxiu.com",
"group": "🎉2022/7/6",
"enabled": false,
"audio": false,
"weight": 0,
"params": {
"cookie": ""
},
"content": {
"params": {
"charset": "UTF-8",
"headers": {
"deviceinfo": "JdxnqW0FkwVrnsScqzAw9KWBZG/yQ+PukPfJf6TZRfOfC+I+HWSUMvvyQbnRz7M88iLL+qR6px/UrjCuXeYlYT6TJC+UE/cXYRFQNrr1yKDdO/AJt/pBb50iUPlITHxElaEmdKPT8wYqNnhqU5uoKjkKIPSX72mPMoN4sx7ISkbHMOvVNWN+c3IQdwwA0efgtAIv56OK034l3A320jLcn7sXVPFSN5Bw/LrxRnqNknQ="
},
"mediaType": "",
"dynamic": false,
"dynamicDelayTime": 500
},
"content": {
"rule": "$.data.chapterContent",
"replace": "\"\\\\r\\\\n##\\n\""
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href"
},
"toc": {
"params": {
"charset": "UTF-8",
"headers": {
"deviceinfo": "JdxnqW0FkwVrnsScqzAw9KWBZG/yQ+PukPfJf6TZRfOfC+I+HWSUMvvyQbnRz7M88iLL+qR6px/UrjCuXeYlYT6TJC+UE/cXYRFQNrr1yKDdO/AJt/pBb50iUPlITHxElaEmdKPT8wYqNnhqU5uoKjkKIPSX72mPMoN4sx7ISkYn0y6BVW4B87HZ9OnaxYZNEdL2wmiUKxGoKUme2996LcF2ZV994ZXGAh+Am2RCY+s="
},
"mediaType": "application/json",
"dynamicDelayTime": 500
},
"list": {
"script": "var result = new java.util.ArrayList();var r = utils.matchList(source,\"$.data.volumes[1:]\");var bookId = utils.match(source,\"$.data.bookId\");for(var i =0;i<r.length;i++){var conList = utils.matchList(r[i],\"$.chapters\");for(var j=0;j<conList.length;j++){var cname = utils.match(conList[j],\"$.chapterName\");var cid = utils.match(conList[j],\"$.chapterId\");var item = {name:cname,link:\"https://wxapp.hongxiu.com/api/v1/chapter/content?bookId=\"+bookId+\"&chapterId=\"+cid};result.add(utils.toJson(item));}}result"
},
"name": "$.name",
"url": "$.link",
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href",
"enableNext": false,
"filter": false,
"reverse": false,
"autoNext": false,
"forceNext": false
},
"detail": {},
"search": {
"params": {
"url": "https://appapi.hongxiu.com/api/v3/search/getResult?origin=1&keyword={{keyword}}&type=1&pageIndex=1&pageSize=20",
"charset": "UTF-8",
"headers": {
"deviceinfo": "JdxnqW0FkwVrnsScqzAw9KWBZG/yQ+PukPfJf6TZRfOfC+I+HWSUMvvyQbnRz7M88iLL+qR6px/UrjCuXeYlYT6TJC+UE/cXYRFQNrr1yKDdO/AJt/pBb50iUPlITHxElaEmdKPT8wYqNnhqU5uoKjkKIPSX72mPMoN4sx7ISkYn0y6BVW4B87HZ9OnaxYZNEdL2wmiUKxGoKUme2996LcF2ZV994ZXGAh+Am2RCY+s="
},
"mediaType": "application/json",
"dynamicDelayTime": 500
},
"list": {
"script": "result= new java.util.ArrayList();r1=utils.matchList(source,\"$.data.cards\");for(var i=0;i<r1.length;i++){var t = utils.match(r1[i],\"$.items\");if(String(t)!=\"null\"){t = utils.matchList(r1[i],\"$.items\");result.addAll(t);}}result"
},
"detail": {
"url": {
"rule": "$.bookId",
"replace": "\"regex:([\\\\s\\\\S]+)##https://appapi.hongxiu.com/api/v1/chapter/list?bookId=$1&lastChapterId=0&md5Signature= h2\""
},
"title": "$.bookName",
"author": "$.authorName",
"category": "$.tags",
"wordCount": "$.wordsCntStr",
"introduce": {
"rule": "$.desc",
"replace": "\"regex:[\\\\\\\\r\\\\\\\\n]+##\\n\""
},
"coverUrl": {
"rule": "$.bookId",
"replace": "\"regex:([\\\\s\\\\S]+)##https://hercover-1252317822.image.myqcloud.com/qdbimg/349573/c_$1/180?imageMogr2/format/webp.png\""
},
"state": "$.bookStatusStr"
}
}
},
{
"name": "🎉 乐文阁",
"site": "https://api.lewenapp.com",
"group": "🎉2022/7/7 防盗",
"enabled": false,
"audio": false,
"weight": 0,
"params": {},
"content": {
"content": {
"rule": "$.data",
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }aesBase64DecodeToString(result,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href"
},
"toc": {
"list": {
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }t=aesBase64DecodeToString(JSON.parse(source).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"name": "$.chapter_name",
"url": {
"rule": "$.chapter_id",
"script": "url.replace(\"list2\",\"info2\").replace(/[0-9]+\\.txt/,result+\".txt\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href",
"enableNext": false,
"filter": false,
"reverse": false,
"autoNext": false,
"forceNext": false
},
"detail": {},
"search": {
"params": {
"url": "https://api.lewenapp.com/api2/search_book/search?key={{keyword}}&page=1",
"dynamicDelayTime": 500
},
"list": {
"script": "var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util);with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); }}result= source;t=aesBase64DecodeToString(JSON.parse(result).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"detail": {
"url": {
"rule": "$.book_id",
"script": "id = parseInt(result %1000);utils.absUrl(url,\"/s/book_chapter_list2/\"+id+\"/\"+result+\"/\"+result+\".txt\");"
},
"title": "$.book_title",
"author": "$.book_author",
"category": "$.book_type",
"introduce": "$.book_desc",
"latestChapterName": "$.book_new_chapter",
"coverUrl": "$.book_img",
"state": "$.anther_status",
"updateTime": {
"rule": "$.book_new_time",
"script": "var timestampToTime = function(timestamp){ var date = new Date(timestamp * 1000); var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-'; var D = date.getDate() + ' '; var h = date.getHours() + ':'; var m = date.getMinutes() + ':'; var s = date.getSeconds(); return Y+M+D+h+m+s;};timestampToTime(result);"
}
}
}
},
{
"name": "🎉 阅民小说",
"site": "https://api.whcon.net",
"group": "🎉2022/7/7 防盗",
"enabled": false,
"audio": false,
"weight": 0,
"params": {},
"content": {
"content": {
"rule": "$.data",
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }aesBase64DecodeToString(result,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href"
},
"toc": {
"list": {
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }t=aesBase64DecodeToString(JSON.parse(source).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"name": "$.chapter_name",
"url": {
"rule": "$.chapter_id",
"script": "url.replace(\"list2\",\"info2\").replace(/[0-9]+\\.txt/,result+\".txt\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href",
"enableNext": false,
"filter": false,
"reverse": false,
"autoNext": false,
"forceNext": false
},
"detail": {},
"search": {
"params": {
"url": "https://api.whcon.net/api2/search_book/search?key={{keyword}}&page=1",
"dynamicDelayTime": 500
},
"list": {
"script": "var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util);with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); }}result= source;t=aesBase64DecodeToString(JSON.parse(result).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"detail": {
"url": {
"rule": "$.book_id",
"script": "id = parseInt(result %1000);utils.absUrl(url,\"/s/book_chapter_list2/\"+id+\"/\"+result+\"/\"+result+\".txt\");"
},
"title": "$.book_title",
"author": "$.book_author",
"category": "$.book_type",
"introduce": "$.book_desc",
"latestChapterName": "$.book_new_chapter",
"latestChapterUrl": "",
"coverUrl": "$.book_img",
"state": "$.anther_status",
"updateTime": {
"rule": "$.book_new_time",
"script": "var timestampToTime = function(timestamp){ var date = new Date(timestamp * 1000); var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-'; var D = date.getDate() + ' '; var h = date.getHours() + ':'; var m = date.getMinutes() + ':'; var s = date.getSeconds(); return Y+M+D+h+m+s;};timestampToTime(result);"
}
}
}
},
{
"name": "🎉 忽忽小说",
"site": "https://api.255zw.com",
"group": "🎉2022/7/7 防盗",
"enabled": false,
"audio": false,
"weight": 0,
"params": {},
"content": {
"content": {
"rule": "$.data",
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }aesBase64DecodeToString(result,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href"
},
"toc": {
"list": {
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }t=aesBase64DecodeToString(JSON.parse(source).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"name": "$.chapter_name",
"url": {
"rule": "$.chapter_id",
"script": "url.replace(\"list2\",\"info2\").replace(/[0-9]+\\.txt/,result+\".txt\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href",
"enableNext": false,
"filter": false,
"reverse": false,
"autoNext": false,
"forceNext": false
},
"detail": {},
"search": {
"params": {
"url": "https://api.255zw.com/api2/search_book/search?key={{keyword}}&page=1",
"dynamicDelayTime": 500
},
"list": {
"script": "var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util);with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); }}result= source;t=aesBase64DecodeToString(JSON.parse(result).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"detail": {
"url": {
"rule": "$.book_id",
"script": "id = parseInt(result %1000);utils.absUrl(url,\"/s/book_chapter_list2/\"+id+\"/\"+result+\"/\"+result+\".txt\");"
},
"title": "$.book_title",
"author": "$.book_author",
"category": "$.book_type",
"introduce": "$.book_desc",
"latestChapterName": "$.book_new_chapter",
"coverUrl": "$.book_img",
"state": "$.anther_status",
"updateTime": {
"rule": "$.book_new_time",
"script": "var timestampToTime = function(timestamp){ var date = new Date(timestamp * 1000); var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-'; var D = date.getDate() + ' '; var h = date.getHours() + ':'; var m = date.getMinutes() + ':'; var s = date.getSeconds(); return Y+M+D+h+m+s;};timestampToTime(result);"
}
}
}
},
{
"name": "🎉 宜阅小说",
"site": "https://api.cnkingjoys.cn",
"group": "🎉2022/7/7 防盗",
"enabled": false,
"audio": false,
"weight": 0,
"params": {},
"content": {
"content": {
"rule": "$.data",
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }aesBase64DecodeToString(result,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href"
},
"toc": {
"list": {
"script": " var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util); with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); } }t=aesBase64DecodeToString(JSON.parse(source).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"name": "$.chapter_name",
"url": {
"rule": "$.chapter_id",
"script": "url.replace(\"list2\",\"info2\").replace(/[0-9]+\\.txt/,result+\".txt\");"
},
"next": "xpath://a[text()~='.*?下[一]{0,1}[页节].*']/@href",
"enableNext": false,
"filter": false,
"reverse": false,
"autoNext": false,
"forceNext": false
},
"detail": {},
"search": {
"params": {
"url": "https://api.cnkingjoys.cn/api2/search_book/search?key={{keyword}}&page=1",
"dynamicDelayTime": 500
},
"list": {
"script": "var common = new JavaImporter(java.lang,javax.crypto.spec,javax.crypto,javax.crypto,java.util);with(common) { function aesBase64DecodeToByteArray(data,key,transformation,iv) { var base64Data = Base64.getDecoder().decode(data); var key = new SecretKeySpec(key.getBytes(), \"AES\"); var chipher = Cipher.getInstance(transformation); if(iv) { var iv = new IvParameterSpec(iv.getBytes()); chipher.init(2, key, iv); } else chipher.init(2, key); return chipher.doFinal(base64Data); } function aesBase64DecodeToString(data,key,transformation,iv){ return new String(aesBase64DecodeToByteArray(data,key,transformation,iv),\"utf-8\"); }}result= source;t=aesBase64DecodeToString(JSON.parse(result).data,\"NOVELS2019031200\",\"AES/ECB/PKCS5Padding\",\"\");utils.matchList(t,\"$.*\");"
},
"detail": {
"url": {
"rule": "$.book_id",
"script": "id = parseInt(result %1000);utils.absUrl(url,\"/s/book_chapter_list2/\"+id+\"/\"+result+\"/\"+result+\".txt\");"
},
"title": "$.book_title",
"author": "$.book_author",
"category": "$.book_type",
"introduce": "$.book_desc",
"latestChapterName": "$.book_new_chapter",
"coverUrl": "$.book_img",
"state": "$.anther_status",
"updateTime": {
"rule": "$.book_new_time",
"script": "var timestampToTime = function(timestamp){ var date = new Date(timestamp * 1000); var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-'; var D = date.getDate() + ' '; var h = date.getHours() + ':'; var m = date.getMinutes() + ':'; var s = date.getSeconds(); return Y+M+D+h+m+s;};timestampToTime(result);"
}
}
}
}
]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/civins/novel.git
git@gitee.com:civins/novel.git
civins
novel
novel
master

搜索帮助