漫蛙

https://www.manwaku.com

langzaier (13654)06/07 11:37

今天发现漫蛙的API竟然新增了翻页,没办法一次爬全。但是不用担心,你的狼来了!

新增了翻页规则。同时修复详情页的获取。

二维码导入
{
    "bookSourceComment": "",
    "bookSourceGroup": "",
    "bookSourceName": "漫蛙",
    "bookSourceType": 2,
    "bookSourceUrl": "https:\/\/www.manwaku.com",
    "bookUrlPattern": "",
    "concurrentRate": "",
    "coverDecodeJs": "",
    "customOrder": 0,
    "enabled": true,
    "enabledCookieJar": true,
    "enabledExplore": true,
    "exploreScreen": "",
    "exploreUrl": "",
    "header": "{  \"User-Agent\": \"Mozilla\/5.0 (Linux; Android 8.1.0; JKM-AL00b Build\/HUAWEIJKM-AL00b; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/66.0.3359.126 MQQBrowser\/6.2 TBS\/044807 Mobile Safari\/537.36\"}",
    "lastUpdateTime": "1780803446393",
    "loginCheckJs": "",
    "loginUi": "",
    "loginUrl": "",
    "respondTime": 1695,
    "ruleBookInfo": {
        "author": "",
        "canReName": "",
        "coverUrl": "",
        "init": "",
        "intro": "p.comic-desc@text",
        "kind": "a[href^=\"\/cate\/\"]@text",
        "lastChapter": "a#newch@text",
        "name": "h2#page-title@text",
        "tocUrl": "",
        "wordCount": ""
    },
    "ruleContent": {
        "content": "@js:\nvar d = JSON.parse(result);\nvar imgs = d.data.images;\nvar html = '';\nfor(var i=0; i<imgs.length; i++){\n  html += '<img src=\"' + imgs[i].url + '\">\\n';\n}\nhtml",
        "imageStyle": "",
        "nextContentUrl": "@js:\nvar d = JSON.parse(result);\nvar p = d.data.pagination;\nif(p.current_page < p.total_pages){\n  baseUrl.replace('page=' + p.current_page, 'page=' + (p.current_page + 1));\n}",
        "replaceRegex": "",
        "sourceRegex": "",
        "webJs": ""
    },
    "ruleExplore": {
        "author": "",
        "bookList": "",
        "bookUrl": "",
        "coverUrl": "",
        "intro": "",
        "kind": "",
        "lastChapter": "",
        "name": "",
        "wordCount": ""
    },
    "ruleSearch": {
        "author": "$.author",
        "bookList": "$.data.list",
        "bookUrl": "$.url",
        "coverUrl": "$.cover",
        "intro": "",
        "kind": "$.tags",
        "lastChapter": "",
        "name": "$.title",
        "wordCount": ""
    },
    "ruleToc": {
        "chapterList": "#chapter-grid-container a",
        "chapterName": "@data-title",
        "chapterUrl": "@href@js:a=result.split(\"\/\")[3];b=`https:\/\/www.manwaku.com\/api\/comic\/image\/${a}?count=true&page=1`",
        "isVip": "",
        "isVolume": "",
        "nextTocUrl": "",
        "updateTime": ""
    },
    "searchUrl": "\/api\/search?type=mh&page={{page}}&pageSize=20&keyword={{key}}",
    "variableComment": "",
    "weight": 0
}
广告