新奇书网

http://m.xxqishu.com

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

数据采集
二维码导入
{
    "bookSourceUrl": "http:\/\/m.xxqishu.com",
    "bookSourceType": "0",
    "bookSourceName": "新奇书网",
    "bookSourceGroup": "",
    "bookSourceComment": "",
    "loginUrl": "",
    "bookUrlPattern": "",
    "header": "",
    "searchUrl": "@js:\nvar javaImport = new JavaImporter();\njavaImport.importPackage(\n    Packages.java.lang,\n    Packages.org.jsoup,\n    Packages.java.util,\n    Packages.java.net,\n);\n\nwith(javaImport){\n    function search(url,key){\n        let map = HashMap()\n        keyEncode=URLEncoder.encode(key, \"GBK\")\n        map.put(\"Content-Type\",\"application\/x-www-form-urlencoded\");\n        var execute = Jsoup.connect(url)\n                .ignoreContentType(true)\n                .followRedirects(false)\n                .headers(map)\n                .method(Connection.Method.POST)\n                .requestBody(\"keyboard=\"+keyEncode+\"&show=title%2Cwriter&tbname=book&tempid=1\")\n                .execute();\n        return execute.header(\"Location\");\n    }\n}\n\nurl=\"http:\/\/m.xxqishu.com\/e\/search\/index.php\"\n\"http:\/\/m.xxqishu.com\/e\/search\/\"+search(url,key)+\"&page=\"+page",
    "exploreUrl": "",
    "enabled": true,
    "enabledExplore": true,
    "weight": 0,
    "customOrder": 0,
    "lastUpdateTime": 1619257110945,
    "ruleSearch": {
        "bookList": "class.listtxt!0",
        "name": "class.bookname@text",
        "author": "class.bookauthor@text",
        "bookUrl": "tag.a@href"
    },
    "ruleExplore": {},
    "ruleBookInfo": {
        "name": "class.title.0@text",
        "author": "class.tm10@text##作者:",
        "kind": "class.gray.1@text##分类:",
        "lastChapter": "class.gray.4@text##更新:",
        "intro": "class.con@text",
        "coverUrl": "class.pic.0@img@src",
        "tocUrl": "text.全文在线阅读@href"
    },
    "ruleToc": {
        "chapterList": "class.cataloglist@a",
        "chapterName": "tag.li@text",
        "chapterUrl": "tag.a@href"
    },
    "ruleContent": {
        "content": "class.articlecon@html##声明\\:本书由.*支持正版\\."
    }
}
广告