追書神器API

來源:互聯網
上載者:User

標籤:json   result   目錄   catalog   com   tor   div   nbsp   bsp   

  由於自己喜歡看小說,有的時候不方便手機看的時候希望在電腦上面看,但很多網站有廣告啊,於是封裝了套手機版的追書神器API

 

  目前只做了搜尋 詳情 書評 換源 本文

 

調用方式:

//搜尋小說            var searchResult = BookApi.Search("凡人修仙傳");            //篩選            var book = searchResult.books.FirstOrDefault(x=>x.author == "忘語");            //擷取小說描述            var detail = BookApi.GetBookDetails(book._id);            System.Console.WriteLine(detail.JsonSerialize());            System.Console.WriteLine();            //擷取小說書評            var comment = BookApi.GetComment(book._id, 0, 30);            System.Console.WriteLine(comment.total);            //擷取小說源            var sources = BookApi.GetBookSource(book._id);            foreach (var bookSource in sources)            {                System.Console.WriteLine(bookSource.name);            }            //擷取小說目錄            var catalog = BookApi.GetBookCatalog(sources[0]._id);            foreach (var catalogChapter in catalog.chapters)            {                System.Console.WriteLine(catalogChapter.title);            }            //擷取指定章節本文            var bookContent = BookApi.GetBookContent(catalog.chapters[0].link);            System.Console.WriteLine(bookContent.chapter.cpContent);

連結: https://pan.baidu.com/s/1pMNgMqZ 密碼: kpy6

追書神器API

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.