🔎百度文库

https://wk.baidu.com111

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

该用户很懒,什么介绍也没有写!
二维码导入
{
    "bookSourceComment": "",
    "bookSourceGroup": "🔎  百度",
    "bookSourceName": "🔎百度文库",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/wk.baidu.com111",
    "customOrder": 0,
    "enabled": true,
    "enabledExplore": true,
    "header": "{\n  \"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\"\n}",
    "lastUpdateTime": 1627568313316,
    "ruleBookInfo": {
        "author": "",
        "coverUrl": "",
        "init": "",
        "intro": "",
        "kind": "",
        "lastChapter": "",
        "name": "",
        "tocUrl": "https:\/\/wk.baidu.com\/search\/api\/getSearchResult?word={{baseUrl.match(\/word=(.*)\/)[1]}}&od=0&lm=0&pn=1",
        "wordCount": ""
    },
    "ruleContent": {
        "content": "<js>\nif(title.match(\/\\.doc|\\.xls|\\.pdf\/)){\nh=java.getString(\"@@class.doc-content@html\",false);\nif(h==\"\"){\ndata=result.match(\/pureViewPageData = (\\{[\\s\\S]+?\\}) \\|\\|\/)[1];\njson=JSON.parse(data);\nlist=json.readerInfo2019.htmlUrls.json;\npng=json.readerInfo2019.htmlUrls.png;\nh=\"\";\nfor(i in list){\nhtml=java.ajax(list[i].pageLoadUrl);\n$=html.match(\/wenku_\\d+\\(([\\s\\S]+)\\)\/)[1];\n$=JSON.parse($);\nlist2=$.body;\nfor(j in list2){\nif(String(list2[j].c).match(\/^\\s{1,5}$\/)){\nc=\"<br>\"\n}else{\nc=list2[j].c\n}\nif(list2[j].t==\"pic\"){\nc='<img src=\"'+png[i].pageLoadUrl+'\">'\n}\nh+=c\n}\nh+=\"<br>\"\n}}\nresult=h\n}else{\nif(result.match(\/class=\"txt\/)){\norg.jsoup.Jsoup.parse(result).select(\".txt\").html()}\nelse{\nmd5=result.match(\/\"md5sum\":\"([^\"]+)\"\/)[1];\ntoken=result.match(\/\"downloadToken\":\"([^\"]+)\"\/)[1];\nimglist=eval(result.match(\/\"bcsParam\":(\\[[\\s\\S]+?\\])\/)[1]);\nhtml='';\nfor(i in imglist){\nurl='https:\/\/wkretype.bdimg.com\/retype\/zoom\/'+token+'?pn='+parseInt(imglist[i].page)+'&x=0&y=0&raww=1080&rawh=810&o=jpg_6&type=pic&aimh=810'+md5+imglist[i].zoom;\nhtml+='<img src=\"'+url+'\">\\n'\n}\nresult=html\n}\n}\n<\/js>\n##‚(.*?)‛##“$1”",
        "imageStyle": "0",
        "nextContentUrl": "",
        "replaceRegex": "##\\[object Object\\]",
        "sourceRegex": "",
        "webJs": ""
    },
    "ruleExplore": {
        "author": "",
        "bookList": "",
        "bookUrl": "",
        "coverUrl": "",
        "intro": "",
        "kind": "",
        "lastChapter": "",
        "name": "",
        "wordCount": ""
    },
    "ruleSearch": {
        "author": "",
        "bookList": "@js:result=[{a:decodeURIComponent(baseUrl.match(\/word=(.*)\/)[1]),b:baseUrl,c:'https:\/\/ss2.bdstatic.com\/70cFvnSh_Q1YnxGkpoWK1HF6hhy\/it\/u=2912920484,4130826712&fm=26&gp=0.jpg'}]",
        "bookUrl": "b",
        "coverUrl": "c",
        "intro": "",
        "kind": "",
        "lastChapter": "",
        "name": "a",
        "wordCount": ""
    },
    "ruleToc": {
        "chapterList": "$.searchList",
        "chapterName": "{{$.title##<\/*em>}}.{{$.typeStr}}",
        "chapterUrl": "$.doc_url##$##,{\"webView\":true}",
        "isVip": "",
        "nextTocUrl": "@js:url=baseUrl.match(\/(https:.*pn=)\/)[1];\nlist=[];\nfor(i=1;i<=5;i++){\nlist.push(url+i)\n}\nlist",
        "updateTime": "时间:{{$.create_time}} 内容:{{$.content##<\/*em>}}"
    },
    "searchUrl": "https:\/\/wk.baidu.com\/search?fr=searchpage&word={{key}}",
    "weight": 0
}
广告