海豚书屋

https://m.haitunsw.com

langzaier (13654)07/25 20:27

复用大量恩木书库的代码写的。但我个人觉得,这是两个不同的网站。
二维码导入
{
    "bookSourceName": "海豚书屋",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/m.haitunsw.com",
    "customOrder": 0,
    "enabled": true,
    "enabledCookieJar": true,
    "enabledExplore": true,
    "exploreUrl": "全部::\/cate\/0_{{page}}_0_0_0_0_0.html\n言情小说::\/cate\/1_{{page}}_0_0_0_0_0.html\n都市小说::\/cate\/2_{{page}}_0_0_0_0_0.html\n历史小说::\/cate\/3_{{page}}_0_0_0_0_0.html\n灵异小说::\/cate\/4_{{page}}_0_0_0_0_0.html\n推理小说::\/cate\/5_{{page}}_0_0_0_0_0.html\n武侠小说::\/cate\/6_{{page}}_0_0_0_0_0.html\n二次元::\/cate\/7_{{page}}_0_0_0_0_0.html\n玄幻奇幻::\/cate\/8_{{page}}_0_0_0_0_0.html\n虚拟网游::\/cate\/9_{{page}}_0_0_0_0_0.html",
    "header": "{\"User-Agent\": \"Mozilla\/5.0 (Linux; Android 9) Mobile Safari\/537.36\"}",
    "lastUpdateTime": "1784982455492",
    "loginCheckJs": "var src = result.body();\nif (src.match(\/Loading\\.\\.\\.|wafjs\/)) {\n    cookie.removeCookie(source.bookSourceUrl);\n    var url = result.url();\n    java.startBrowserAwait(url, \"海豚书屋验证\");\n    java.connect(url);\n    result = java.connect(url);\n}\nresult;",
    "loginUrl": "https:\/\/m.haitunsw.com",
    "respondTime": 180000,
    "ruleBookInfo": {
        "author": "@get:{a}",
        "coverUrl": "http:@get:{c}",
        "init": "@put:{n:\"[property$=book_name]@content\",\na:\"[property$=author]@content\",\nk:\"[property~=category|status|update_time]@content\",\nl:\"[property$=latest_chapter_name]@content\",\ni:\"[property$=description]@content&&.sectionTwo-content p.0@html\",\nc:\"[property$=image]@content\",\nt:\"text.目录@href\"}",
        "intro": "@get:{i}",
        "kind": "@get:{k}",
        "lastChapter": "@get:{l}",
        "name": "@get:{n}",
        "tocUrl": "@get:{t}"
    },
    "ruleContent": {
        "content": "@js:\nurl=\"https:\"+result.match(\/initTxt\\(\"([^\"]+)\",\"[^\"]+\"\\)\/)[1];\nr=String(java.ajax(url).match(\/_txt_call\\(([\\s\\S]+\\})\\)\/)[1]);\nvar r = eval('(' + r + ')');\n\t\t\t\tif(r.content!=null){\t\t\t\t\n      var e = r.replace;\n\t\t\t\tfor (var n in e) {\n\t\t\t\t\tvar i = new RegExp(e[n], \"ig\");\n\t\t\t\t\tr.content = r.content.replace(i, n)\n\t\t\t\t}\n\t\t\t\tresult=r.content\n\t\t\t\t\t}else{result=\"章节加载失败,或者内容正在手打中,请稍后访问~\"}"
    },
    "ruleExplore": {
        "author": "p.-1@text",
        "bookList": ".item-text",
        "bookUrl": "a.0@href",
        "coverUrl": "",
        "intro": "",
        "kind": "",
        "lastChapter": "p.-1@text",
        "name": "a.0@text"
    },
    "ruleSearch": {
        "author": "a.1@text",
        "bookList": "@js:\npath = '.search-card';\nc=java.getElement(path);\nif( !c.length ){\n  res = java.startBrowserAwait(baseUrl,'等待至跳转,然后重搜');\n  java.setContent(res.body());\n  c=java.getElement(path);\n}\nc",
        "bookUrl": "a.0@href",
        "intro": ".sc-content@text",
        "kind": "span.-1@text",
        "lastChapter": "span.-2@text",
        "name": "a.0@text",
        "wordCount": ""
    },
    "ruleToc": {
        "chapterList": ".chapter-list li a",
        "chapterName": "text",
        "chapterUrl": "href"
    },
    "searchUrl": "\/search\/,{\n  \"body\": \"keyword={{key}}\",\n  \"method\": \"POST\"\n}",
    "weight": 0
}
广告