熊猫看书

https://www.xmkanshu.com

采集机器人 (2)2023/04/01

数据采集
二维码导入
{
    "bookSourceComment": "",
    "bookSourceName": "熊猫看书",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/www.xmkanshu.com",
    "customOrder": 0,
    "enabled": false,
    "enabledExplore": false,
    "header": "{\"User-Agent\":\"Mozilla\/5.0 (Linux; Android 10; AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/83.0.4103.106 Mobile Safari\/537.36\"}",
    "lastUpdateTime": 1602044096853,
    "ruleBookInfo": {
        "author": "class.in_texttwo.0@text##.*作者:",
        "coverUrl": "img@data-original",
        "intro": ".janjie@text",
        "kind": ".in_texttwo@text##- .+",
        "lastChapter": "{{@@.fn13@text}} {{@@.time_hoe@text}}",
        "name": "h1@text",
        "tocUrl": "##bkid=(\\d+)##\/service\/getChapterList?fr=smsstg&urbid=%2Fbook_95_0&bck=127&bkid=$1&sort=0&pg=1###"
    },
    "ruleContent": {
        "content": "​{{$.result.content}}",
        "nextContentUrl": "@js:a=baseUrl.match(\/pg=(\\d+)\/)[1];\na&&a<{{$.result.pagecount}}?baseUrl.replace(\/pg=.+\/,'pg='+(Number(a)+1)):''",
        "replaceRegex": "##\\s*​"
    },
    "ruleExplore": {},
    "ruleSearch": {
        "author": "\/\/div[@class=\"author\"]\/\/text()",
        "bookList": "<js>JSON.parse(result).content<\/js>\/\/div[@class=\"book_piece\"]",
        "bookUrl": "##bkid=(\\d+)##\/book?fr=smsstg&urbid=%2Fsearch_122_0&bkid=$1###",
        "coverUrl": "\/\/img\/@data-original",
        "intro": "\/\/div[@class=\"intro\"]\/\/text()",
        "name": "\/\/div[@class=\"name\"]\/\/text()"
    },
    "ruleToc": {
        "chapterList": "$.content[*]",
        "chapterName": "$.title##.+_",
        "chapterUrl": "$.readUrl##\/book\/read(.+?crid=\\d+).*##\/service\/getContent$1&pg=1",
        "nextTocUrl": "@js:list=[];a=Math.ceil({{$.total}}\/50);for(i=2;i<=a;i++)list.push(baseUrl.replace(\/pg=1$\/,'pg='+i));list",
        "updateTime": "$.title##_.+"
    },
    "searchUrl": "\/search\/ajaxSearch?keyword={{key}}&pg={{page}}",
    "weight": 0
}
广告