[{"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}]