微信扫一扫 分享朋友圈

已有 12 人浏览分享

弟子小说网

[复制链接]

6492

主题

0

回帖

1万

积分

管理员

积分
15079

最佳新人活跃会员热心会员推广达人宣传达人灌水之王突出贡献优秀版主荣誉管理论坛元老

发表于 2025-5-10 15:56:00 | 显示全部楼层 | 阅读模式
{
    "bookSourceGroup": "",
    "bookSourceName": "弟子小说网",
    "bookSourceUrl": "https:\/\/www.dizishu.com\/xiaoshuo",
    "enable": true,
    "httpUserAgent": "",
    "loginUrl": "",
    "ruleBookAuthor": "",
    "ruleBookContent": "$class.txt@html",
    "ruleBookInfoInit": "",
    "ruleBookKind": "",
    "ruleBookLastChapter": "",
    "ruleBookName": "",
    "ruleBookUrlPattern": "",
    "ruleChapterList": ".book-chapter-list@class.cf.1@li@a",
    "ruleChapterName": "text",
    "ruleChapterUrl": "",
    "ruleChapterUrlNext": "",
    "ruleContentUrl": "href",
    "ruleContentUrlNext": "",
    "ruleCoverUrl": "",
    "ruleFindAuthor": "",
    "ruleFindCoverUrl": "",
    "ruleFindIntroduce": "",
    "ruleFindKind": "",
    "ruleFindLastChapter": "",
    "ruleFindList": "",
    "ruleFindName": "",
    "ruleFindNoteUrl": "",
    "ruleFindUrl": "",
    "ruleIntroduce": "@js:'<br>'+java.get('intro')",
    "ruleSearchAuthor": "author",
    "ruleSearchCoverUrl": "img",
    "ruleSearchIntroduce": "intro@js:java.put('intro',result);",
    "ruleSearchKind": "type",
    "ruleSearchLastChapter": "last",
    "ruleSearchList": "@js:\nfunction check(a){return (a)? a[1]:'';}\nimportClass(org.jsoup.Jsoup);\n\/\/期望获取的书籍个数\nvar n=2;\n\/\/从搜索引擎的结果获取书籍网址\nvar reg=new RegExp(\/vr-tit[\\s\\S]+?url=(.*?)&amp\/g);\nvar url;\nvar url_pre;\nvar list=[];\n\nwhile((url=reg.exec(result))){\nurl=decodeURIComponent(check(url)).replace(\/m\/,'www');\n\/\/避免重复获取相同网址,处理书籍计数\nwhile((url==url_pre)){\nurl=reg.exec(result);\nurl=decodeURIComponent(check(url)).replace(\/m\/,'www');\n}\nurl_pre=url;\nn=n-1;\n\n\/\/打开链接获取书籍信息\nvar tmp=new String(java.ajax(url+\"@header:{'User-Agent':'Chrome'}\"));\nvar tt=Jsoup.parse(tmp);\nvar name=tt.select(\"[property=og:title]\").attr(\"content\")\n\n\/\/var name=check((tmp.match(\/og:title\" content=\"(.*?)\"\/)));\n\nvar author=check((tmp.match(\/og:novel:author\" content=\"(.*?)\"\/)));\n\nvar type=check((tmp.match(\/og:novel:category\" content=\"(.*?)\"\/)));\n\nvar last=check((tmp.match(\/最新章节预览[\\s\\S]+?href.*?>(.*?)<\/)));\n\nvar intro=check(tmp.match(\/intro\">([^<]+)\/)).trim();\n\nvar img=check((tmp.match(\/og:image\" content=\"(.*?)\"\/)));\n\n\n\/\/保存数据\nlist.push({name:name,author:author,type:type,img:img,last:last,intro:intro,url:url});\n\/\/判断书籍计数\nif(n==0) break;\n}\nlist;",
    "ruleSearchName": "name",
    "ruleSearchNoteUrl": "url",
    "ruleSearchUrl": "https:\/\/wap.sogou.com\/web\/sl?bid=sogou-mobb-248eb1f330c4c4bf&keyword=searchKey site:https:\/\/www.dizishu.com\/",
    "serialNumber": 0,
    "weight": 0
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

0

关注

0

粉丝

6492

主题
  • 微信公众平台

  • 扫描访问手机版

Archiver|手机版|小黑屋|永恒资源网

GMT+8, 2025-7-29 05:23 , Processed in 0.133061 second(s), 32 queries .

Powered by 永恒资源网

Copyright © 2001-2025, Tencent Cloud.