forked from hectorqin/reader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,27 +20,34 @@ class DebugTest { | |
@Test | ||
fun startDebug() { | ||
val bookSource = OldRule.jsonToBookSource("{\n" + | ||
" \"bookSourceGroup\": \"✯༇薅白魔人♪\",\n" + | ||
" \"bookSourceName\": \"有兔\",\n" + | ||
" \"bookSourceUrl\": \"http://app.youzibank.com\",\n" + | ||
" \"enable\": true,\n" + | ||
" \"ruleBookContent\": \"@Js:result\",\n" + | ||
" \"ruleBookName\": \"\",\n" + | ||
" \"ruleChapterList\": \"data.*\",\n" + | ||
" \"ruleChapterName\": \"name\",\n" + | ||
" \"ruleContentUrl\": \"https://book.chengxinqinye.com/book{\$.filePath}\",\n" + | ||
" \"ruleFindUrl\": \"历史传记::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=193&clsIdSecond=0&gender=-1&pageNo=searchPage\\n经济管理::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=205&clsIdSecond=0&gender=-1&pageNo=searchPage\\n社科心理::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=212&clsIdSecond=0&gender=-1&pageNo=searchPage\\n艺术生活::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=245&clsIdSecond=0&gender=-1&pageNo=searchPage\\n历史著作::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=258&clsIdSecond=0&gender=-1&pageNo=searchPage\\n成功励志::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=269&clsIdSecond=0&gender=-1&pageNo=searchPage\\n英文著作::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=276&clsIdSecond=0&gender=-1&pageNo=searchPage\\n儿童读物::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=280&clsIdSecond=0&gender=-1&pageNo=searchPage\\n古典文学::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=283&clsIdSecond=0&gender=-1&pageNo=searchPage\\n现代文学::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=287&clsIdSecond=0&gender=-1&pageNo=searchPage\\n商业思维::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=291&clsIdSecond=0&gender=-1&pageNo=searchPage\\n其他::/book/list?selectionModuleId=0&fullFlag=0&orderBy=read_cnt&clsIdFirst=116&clsIdSecond=0&gender=2&pageNo=searchPage\",\n" + | ||
" \"ruleSearchAuthor\": \"author\",\n" + | ||
" \"ruleSearchCoverUrl\": \"https://book.banquanzhuce.com/book{\$.photoPath}\",\n" + | ||
" \"ruleSearchIntroduce\": \"intro\",\n" + | ||
" \"ruleSearchKind\": \"clsName\",\n" + | ||
" \"ruleSearchLastChapter\": \"lastUpdate\",\n" + | ||
" \"ruleSearchList\": \"data.*\",\n" + | ||
" \"ruleSearchName\": \"name\",\n" + | ||
" \"ruleSearchNoteUrl\": \"/book/chapter/listAll?bookId={\$.id}\",\n" + | ||
" \"ruleSearchUrl\": \"http://app.youzibank.com:80/es/search/book?q=searchKey&pageNo=searchPage&pageSize=10@header:{Seq:'2482380c2df68970a7833191e8193316'}\",\n" + | ||
" \"serialNumber\": 1,\n" + | ||
" \"weight\": 0\n" + | ||
"\t\"bookSourceGroup\": \"S级\",\n" + | ||
"\t\"bookSourceName\": \"百合小说网\",\n" + | ||
"\t\"bookSourceUrl\": \"https://www.baihexs.com\",\n" + | ||
"\t\"enable\": true,\n" + | ||
"\t\"httpUserAgent\": \"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko, By Black Prism) Chrome/99.0 Safari/537.36\",\n" + | ||
"\t\"loginUrl\": \"\",\n" + | ||
"\t\"ruleBookAuthor\": \"\",\n" + | ||
"\t\"ruleBookContent\": \"id.content@textNodes#请牢记:.*百合小说网.*\",\n" + | ||
"\t\"ruleBookName\": \"\",\n" + | ||
"\t\"ruleChapterList\": \"[email protected]!0\",\n" + | ||
"\t\"ruleChapterName\": \"tag.a@text\",\n" + | ||
"\t\"ruleChapterUrl\": \"[email protected]@href\",\n" + | ||
"\t\"ruleChapterUrlNext\": \"\",\n" + | ||
"\t\"ruleContentUrl\": \"tag.a@href\",\n" + | ||
"\t\"ruleContentUrlNext\": \"\",\n" + | ||
"\t\"ruleCoverUrl\": \"[email protected]@src\",\n" + | ||
"\t\"ruleFindUrl\": \"\",\n" + | ||
"\t\"ruleIntroduce\": \"id.bookintro@text\",\n" + | ||
"\t\"ruleSearchAuthor\": \"class.odd.1@text|[email protected]@text\",\n" + | ||
"\t\"ruleSearchCoverUrl\": \"\",\n" + | ||
"\t\"ruleSearchKind\": \"\",\n" + | ||
"\t\"ruleSearchLastChapter\": \"[email protected]@text|[email protected]@tag.a.0@text\",\n" + | ||
"\t\"ruleSearchList\": \"[email protected]!0|id.conn\",\n" + | ||
"\t\"ruleSearchName\": \"[email protected]@text|tag.h1@text\",\n" + | ||
"\t\"ruleSearchNoteUrl\": \"[email protected]@href\",\n" + | ||
"\t\"ruleSearchUrl\": \"https://www.baihexs.com/modules/article/search.php@searchkey=searchKey|char=gbk\",\n" + | ||
"\t\"serialNumber\": 15,\n" + | ||
"\t\"weight\": 0\n" + | ||
"}") | ||
val webBook = WebBook(bookSource) | ||
Debug.startDebug(webBook, "剑来") | ||
|