笔下文学

http://www.ywggzy.com

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

数据采集
二维码导入
{
    "bookSourceComment": "",
    "bookSourceGroup": "👍",
    "bookSourceName": "笔下文学",
    "bookSourceType": 0,
    "bookSourceUrl": "http:\/\/www.ywggzy.com",
    "customOrder": 9,
    "enabled": true,
    "enabledExplore": true,
    "lastUpdateTime": 1619172227942,
    "ruleBookInfo": {
        "author": "[property$=author]@content",
        "coverUrl": "[property$=image]@content",
        "intro": " 更新日期:👉{{@css:[property$=update_time]@content}}👈\n{{@css:[property$=og:description]@content}}",
        "kind": "[property$=category]@content&&[property$=status]@content",
        "lastChapter": "[email protected]@text",
        "name": "[property$=book_name]@content"
    },
    "ruleContent": {
        "content": "id.content@textNodes||class.content@textNodes",
        "nextContentUrl": "text.下一页@href"
    },
    "ruleExplore": {},
    "ruleSearch": {
        "author": "author",
        "bookList": "class.txt-list@li<js>\nresult.toArray().slice(1, 6).map(el => {\nvar url = String(el.select('.s2 a').attr('href')).replace(\/^\\\/\/, baseUrl.match(\/(.+?\\\/\\\/[^\\\/]+\\\/)\/)[1]);\nvar doc=org.jsoup.Jsoup.connect(url).get();\nvar og=s=>doc.select(\"[property$=\"+s+\"]\").attr('content');\nvar t=s=>doc. select(s).text();\nreturn {\n \"name\":og(\"book_name\"),\n \"author\":og(\"author\"),\n \"category\":og(\"category\")+\",\"+og(\"status\"),\n \"chapter\":t(\".section-box:eq(1) li:first-child\")+\"▪\"+og(\"update_time\"),\n \"intro\":og(\"og:description\"),\n \"image\":og(\"image\"),\n \"url\":url\n}\n\n\t\n}); \n<\/js>",
        "bookUrl": "url",
        "coverUrl": "image",
        "intro": "intro",
        "kind": "category",
        "lastChapter": "chapter",
        "name": "name"
    },
    "ruleToc": {
        "chapterList": "[email protected]",
        "chapterName": "a@text",
        "chapterUrl": "a@href"
    },
    "searchUrl": "http:\/\/www.ywggzy.com\/ar.php?keyWord={{key}}",
    "weight": 0
}
广告