模板(Json)
模板(Json)
采集机器人 (2)2023/04/06
该用户很懒,什么介绍也没有写!
{ "bookSourceComment": "ฅ՞•ﻌ•՞ฅ", "bookSourceGroup": "🌼 空白模板", "bookSourceName": "模板(Json)", "bookSourceType": 0, "bookSourceUrl": "模板(Json)", "bookUrlPattern": "", "customOrder": -84, "enabled": true, "enabledCookieJar": false, "enabledExplore": true, "header": "{\n \"User-Agent\": \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/82.0.4080.0 Safari\/537.36 Edg\/82.0.453.0\"\n}", "lastUpdateTime": 1655347681492, "loginUrl": "", "respondTime": 180000, "ruleBookInfo": { "author": "author", "coverUrl": "cover", "init": "<js> \nvar J = org.jsoup.Jsoup.parse(result);\nvar o = selector => String(J.select(selector).text()) ;\nvar og = selector => String(J.select('[property=\"og:' + selector + '\"]').attr('content'));\nvar book = {\n\tname: og('novel:book_name').replace(\/(全文|小说|免费阅读|最新章节).*|[((].*[))]\/g, ''),\n\tauthor: og('novel:author'),\n\tkind: og('novel:category') + ',' + og('novel:status'),\n\tlatest: og('novel:latest_chapter_name').replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\((【].*[求更谢乐发推].*\/g, '') + '▪' + og('novel:update_time').replace(\/(T|\\s).*\/, ' ').replace(\/\\\/\/g, '-'),\n\t\tintro: og('description').replace(\/.*(观看小说|简介)[::]|各位书友.*\/g, '').replace(\/\\s+\/g, ''),\n\tcover: og('image'),\n\turl: og('novel:read_url'),\n};\nbook;\n<\/js>", "intro": "intro", "kind": "kind", "lastChapter": "latest", "name": "name", "tocUrl": "url", "wordCount": "" }, "ruleContent": { "content": "id.content@html", "nextContentUrl": "text.下一页@href", "replaceRegex": "" }, "ruleExplore": { "bookList": "" }, "ruleSearch": { "author": "author", "bookList": "\n<js>\nresult.toArray().slice(0, 10).map(el => {\n\tvar url = String(el.select('a:eq(0)').attr('href')).replace(\/^\\\/\/, baseUrl.match(\/(.+?\\\/\\\/[^\\\/]+\\\/)\/)[1]);\n\tvar J = org.jsoup.Jsoup.parse(java.ajax(url));\n\tvar o = selector => String(J.select(selector).text());\n\tvar og = selector => String(J.select('[property=\"og:' + selector + '\"]').attr('content'));\n\treturn {\n\t\tname: og('novel:book_name').replace(\/(全文|小说|免费阅读|最新章节).*|[((].*[))]\/g, ''),\n\t\tauthor: og('novel:author'),\n\t\tkind: og('novel:category') + ',' + og('novel:status'),\n\t\tlatest: og('novel:latest_chapter_name').replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\((【].*[求更谢乐发推].*\/g, '') + '▪' + og('novel:update_time').replace(\/(T|\\s).*\/, ' ').replace(\/\\\/\/g, '-'),\n\t\tintro: og('description').replace(\/.*(观看小说|简介)[::]|各位书友.*\/g, '').replace(\/\\s+\/g, ''),\n\t\tcover: og('image'),\n\t\turl: url,\n\t};\n}); \n<\/js>", "bookUrl": "url", "coverUrl": "cover", "intro": "intro", "kind": "kind", "lastChapter": "latest", "name": "name", "wordCount": "" }, "ruleToc": { "chapterList": "", "chapterName": "text\n##第.*?章\\s?(第.*?章)(.*$)##$1 $2", "chapterUrl": "href", "updateTime": "" }, "searchUrl": "", "weight": 0 }