Skip to content

Instantly share code, notes, and snippets.

@xiadd
Created May 10, 2017
Embed
What would you like to do?

在线地址(支持https):

http://novel.juhe.im

注意: 如果运行在自己的服务器的话 请务必使用node 7.6 以上(因为很多模块直接用到了async,所以就算加上babel也没用, 打包过后仍然是直接引用)

部署

npm start: 启动开发服务器 通过babel转义

npm run build: 通过babel打包

api接口

获取带书籍数量的父分类

url: http://novel.juhe.im/categories

获取带子分类的分类

url: http://novel.juhe.im/sub-categories

获取分类详情

url: http://novel.juhe.im/category-info?gender=male&type=hot&major=奇幻&minor=&start=0&limit=20

query:

{
  gender, type, major(主分类), minor(子分类), start, limit
}

获取书籍详情

url: http://novel.juhe.im/book-info/53115e30173bfacb4904897e

params:

{
  id: book id
}

获取作者名下的书籍

url: http://novel.juhe.im/author-books?author=忘语

query:

{
  author: 作者名
}

获取书籍源

url: http://novel.juhe.im/book-sources?view=summary&book=567d2cb9ee0e56bc713cb2c0

query:

{
  view: summary,
  book: {bookid}
}

获取书籍章节

url: http://novel.juhe.im/book-chapters/56f8da09176d03ac1983f6cd

params:

{
  id: {书籍源id}
}

获取章节详细内容

url: http://novel.juhe.im/chapters/http%3A%2F%2Fvip.zhuishushenqi.com%2Fchapter%2F56f8da09176d03ac1983f6d7%3Fcv%3D1486473051386 // 注意这里需要进行url编码

params:

{
  link: {目录中的章节link}
}

获取搜索结果

url: http://novel.juhe.im/search?keyword=遮天

query:

{
  keyword: {书籍关键字}
}

获取排名分类

url: http://novel.juhe.im/rank-category

获取排名详情

url: http://novel.juhe.im/rank/54d42d92321052167dfb75e3

params:

{
  id: {排名分类的id}
}

演示

demo

已完成功能

书架 换源 阅读 切换章节 demo上有的未展示 换源这个功能只能说可以实现吧

欢迎加入群讨论:

群

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment