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