Bookhunting API, api

Source: Internet
Author: User

Bookhunting API, api

Because I like reading novels, sometimes I want to watch novels on my computer when it is not convenient for my mobile phone, but many websites have advertisements, So I encapsulated a set of mobile phone version of the book-chasing artifact API.

 

Currently, only search details book reviews for source text are supported.

 

Call method:

// Search novels var searchResult = BookApi. search (" 文 "); // filter var book = searchResult. books. firstOrDefault (x => x. author = ""); // obtain the novel description var detail = BookApi. getBookDetails (book. _ id); System. console. writeLine (detail. jsonSerialize (); System. console. writeLine (); // get the novel book reviews var comment = BookApi. getComment (book. _ id, 0, 30); System. console. writeLine (comment. total); // get the Novel Source var sources = BookApi. getBookSource (book. _ id); foreach (var bookSource in sources) {System. console. writeLine (bookSource. name);} // get the novel directory var catalog = BookApi. getBookCatalog (sources [0]. _ id); foreach (var catalogChapter in catalog. chapters) {System. console. writeLine (catalogChapter. title) ;}// obtain the specified chapter body var bookContent = BookApi. getBookContent (catalog. chapters [0]. link); System. console. writeLine (bookContent. chapter. cpContent );

Link: https://pan.baidu.com/s/1pMNgMqZ password: kpy6

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.