zoukankan      html  css  js  c++  java
  • 追书神器API

      由于自己喜欢看小说,有的时候不方便手机看的时候希望在电脑上面看,但很多网站有广告啊,于是封装了套手机版的追书神器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

  • 相关阅读:
    使用GitLab搭建Git仓库
    SpringBoot web开发
    springboot配置
    springboot自动配置原理
    springboot修改端口号
    springboot创建方式
    junit运行多个测试的方法
    junit常用注解
    junit断言
    sublime将.m文件关联MATLAB类型高亮
  • 原文地址:https://www.cnblogs.com/mldcy/p/8418580.html
Copyright © 2011-2022 走看看