# BookSourceRepository **Repository Path**: chimisgo/BookSourceRepository ## Basic Information - **Project Name**: BookSourceRepository - **Description**: The repository is based on GitHub to provide an open book source repository for the Deepink, and welcomes the introduction of new book sources. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2018-12-25 - **Last Updated**: 2021-07-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BookSourceRepository The repository is based on GitHub to provide an open book source repository for the Deepink, and welcomes the introduction of new book sources. 仓库地址:https://raw.githubusercontent.com/chimisgo/BookSourceRepository/master/repository.json ##### 目前已收录 | 书源 | API | 类型 | 排行榜 | 账号 | 版本 | | :----: | ------------- | :--: | :----: | :----: | :---: | | My716 | http://api.zhuishushenqi.com | 网文 | 4 | 否 | 1.0.6 | | 作品集 | http://zuopinj.com | 出版 | 4 | 否 | 1.0.1 | | 稻草人书屋 | https://www.daocaorenshuwu.com | 综合 | 0 | 否 | 1.0.1 | | 笔趣阁 | https://www.biqubao.com | 网文 | 0 | 否 | 1.0.2 | | 亲小说 | https://www.qinxiaoshuo.com | 轻小说 | 2 | 否 | 1.0.1 | | 轻之文库 | https://www.linovel.net | 轻小说 | 24 | 否 | 1.0.0 | | 斋书苑 | https://www.zhaishuyuan.com | 网文 | 0 | 否 | 1.0.1 | | 我的小书屋 | https://m.sanyuedev.top | 网文 | 3 | 否 | 1.0.0 | --- ### 书源制作 准备工作,需了解基础的Html/CSS/JavaScript内容,以及Jsoup选择器功能。 参考内容:[Jsoup选择器文档](https://jsoup.org/apidocs/org/jsoup/select/Selector.html) 和 [Jsoup调试神器](https://try.jsoup.org) #### 1. 源网站 教程以 [作品集](http://zuopinj.com) 为例讲解。 #### 2. 基础信息 根据源网站信息创建一个书源文件:作品集.json ``` { "name": "作品集", "version": 100, "category": 0, "url": "http://zuopinj.com", "charset": "utf-8" } ``` 属性讲解 | 属性 | 含义 | 讲解 | | :-: | :-: | --- | | name | 书源名 | 推荐使用源网站名字清晰明了| | version | 版本号 | 新建写100(1.0.0)当内容变化时递增,如101(1.0.1)| | category | 类别 | 0(出版)、1(网文)、2(轻小说)、3(综合)| | url | 源网站 | 务必真实有效,否则会影响到后续属性调用| | charset | 字符集 | utf-8 gbk gbk2312 影响search等请求时的编码,非源网站的编码 | #### 3. 搜索 书源必须具有搜索功能,填充入上一步的json中如下: ``` { ... 第2步内容 "search": { "link": "http://so.zuopinj.com/search/index.php@post->tbname=bookname&show=title&tempid=3&keyboard=${key}", "list": ".search-bookele" } } ``` 属性讲解 | 属性 | 含义 | 讲解 | | :-: | :-: | --- | | link | 地址 | ${key}代表搜索关键词,搜索时自动替换为用户输入的词; @post-> 表明后续使用POST方式传递参数,如果是GET方式不需要特殊声明,例如 http://search.com?key=${key} 意味key使用GET方式请求内容 | | list | 结果 | 通过Jsoup选择结果元素 | 举例说明: 请求地址:http://so.zuopinj.com/search/index.php@post->tbname=bookname&show=title&tempid=3&keyboard=剑 请求结果:  ##### 使用.search-bookele选择出```