Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有毒小说正文内容是BASE64过的 这个有办法吗? #303

Open
daiaji opened this issue Jun 11, 2019 · 5 comments
Open

有毒小说正文内容是BASE64过的 这个有办法吗? #303

daiaji opened this issue Jun 11, 2019 · 5 comments

Comments

@daiaji
Copy link

daiaji commented Jun 11, 2019

而且还分段
能搞吗?
简直神经病……

{
    "bookSourceName": "有毒小说",
    "bookSourceGroup": "",
    "bookSourceUrl": "https://www.youdubook.com",
    "loginUrl": "",
    "ruleFindUrl": "",
    "ruleFindList": "",
    "ruleFindName": "",
    "ruleFindAuthor": "",
    "ruleFindKind": "",
    "ruleFindLastChapter": "",
    "ruleFindIntroduce": "",
    "ruleFindCoverUrl": "",
    "ruleFindNoteUrl": "",
    "ruleSearchUrl": "http://api2.youdubook.com/Booklibrary/index@keywords=searchKey",
    "ruleBookUrlPattern": "",
    "ruleSearchList": "@JSon:$.data[*]",
    "ruleSearchName": "@JSon:$.title",
    "ruleSearchAuthor": "@JSon:$.penName",
    "ruleSearchKind": "@JSon:$.cname",
    "ruleSearchLastChapter": "",
    "ruleSearchIntroduce": "@JSon:$.jianjie",
    "ruleSearchCoverUrl": "@JSon:$.picture@js:\"https://youdubook.com\" + result",
    "ruleSearchNoteUrl": "@JSon:$.BooksID@js:\"https://www.youdubook.com/book_detail/\" + result",
    "ruleBookInfoInit": "",
    "ruleBookName": "[email protected]@text",
    "ruleBookAuthor": "[email protected]@text",
    "ruleBookKind": "[email protected]@text",
    "ruleBookLastChapter": "[email protected]@text",
    "ruleIntroduce": "class.synopsisCon@textNodes",
    "ruleCoverUrl": "[email protected]@src",
    "ruleChapterUrl": "",
    "ruleChapterUrlNext": "",
    "ruleChapterList": "[email protected]@tag.a",
    "ruleChapterName": "text",
    "ruleContentUrl": "href",
    "ruleBookContent": "http://api2.youdubook.com/Booklibrary/readchapter@BookID=904&chapter_id=33658",
    "ruleContentUrlNext": "",
    "httpUserAgent": "",
    "serialNumber": 0,
    "weight": 0,
    "enable": true
}
@gedoor
Copy link
Owner

gedoor commented Jun 12, 2019

用js解码 @js:java.base64Decoder(result)

@daiaji
Copy link
Author

daiaji commented Jun 16, 2019

@gedoor 怎么把章节链接拆成chapter_id?
似乎没找到哪个地方直接获取chapter_id
还有就是下一章的chapter_id也是个问题

@gedoor
Copy link
Owner

gedoor commented Jun 16, 2019

用js拆baseUrl

@daiaji
Copy link
Author

daiaji commented Jun 16, 2019

@gedoor 找到目录的API了……
但是填上也不从那里解析……

{
    "bookSourceName": "有毒小说",
    "bookSourceGroup": "",
    "bookSourceUrl": "https://www.youdubook.com",
    "loginUrl": "https://www.youdubook.com/user/login",
    "ruleFindUrl": "",
    "ruleFindList": "",
    "ruleFindName": "",
    "ruleFindAuthor": "",
    "ruleFindKind": "",
    "ruleFindLastChapter": "",
    "ruleFindIntroduce": "",
    "ruleFindCoverUrl": "",
    "ruleFindNoteUrl": "",
    "ruleSearchUrl": "http://api2.youdubook.com/Booklibrary/index@keywords=searchKey",
    "ruleBookUrlPattern": "",
    "ruleSearchList": "@JSon:$.data[*]",
    "ruleSearchName": "@JSon:$.title@put:{bookid:$.BooksID}",
    "ruleSearchAuthor": "@JSon:$.penName",
    "ruleSearchKind": "@JSon:$.cname",
    "ruleSearchLastChapter": "",
    "ruleSearchIntroduce": "@JSon:$.jianjie",
    "ruleSearchCoverUrl": "@JSon:$.picture@js:\"https://youdubook.com\" + result",
    "ruleSearchNoteUrl": "http://api2.youdubook.com/Booklibrary/bookdetail@BookID=@get:{bookid}",
    "ruleBookInfoInit": "",
    "ruleBookName": "",
    "ruleBookAuthor": "",
    "ruleBookKind": "",
    "ruleBookLastChapter": "",
    "ruleIntroduce": "",
    "ruleCoverUrl": "",
    "ruleChapterUrl": "http://api2.youdubook.com/Booklibrary/readdir@BookID=@get:{bookid}",
    "ruleChapterUrlNext": "",
    "ruleChapterList": "@JSon:..chapterList[*]",
    "ruleChapterName": "@JSon:..title",
    "ruleContentUrl": "",
    "ruleBookContent": "$class.chapter@textNodes",
    "ruleContentUrlNext": "",
    "httpUserAgent": "",
    "serialNumber": 0,
    "weight": 0,
    "enable": true
}

如果要用js发POST请求 该怎么搞?

@q847633684
Copy link

同求!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants