npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gede-book-api

v1.0.19

Published

> 歌德电子书借阅机 API

Downloads

8

Readme

gede-book-api

歌德电子书借阅机 API

免责声明

本项目仅供编程学习交流使用,请勿将其用于任何非法用途。如若违反使用规定,产生的任何后果由使用者承担。

快速开始

npm install gede-book-api

API 文档

图书部分

(method) Book.getCategories(): Promise<{
    id: number;
    name: string;
}[]>

获取类别列表
(method) Book.getList(
    catagoryId: number,
    page?: number,
    pageSize?: number
): Promise<BookItem[]>

获取指定类别的图书列表

@param catagoryId — 图书类别编号

@param page — 页码

@param pageSize — 返回数据条数
(method) Book.getInfo(id: string): Promise<BookInfo>

获取图书详情

@param id — 图书编号
(method) Book.getData(
    id: string,
    page?: number,
    pageSize?: number,
    width?: number,
    height?: number
): Promise<BookData>

获取图书正文和目录数据

@param id — 图书编号

@param page — 页码

@param pageSize — 数据条数

@param width — 阅读器宽度像素,影响计算单页字数
(method) Book.getCatalog(id: string): Promise<BookData>

获取图书目录数据

期刊部分

(method) Magazine.getCategories(): Promise<{
    id: number;
    name: string;
}[]>

获取类别列表
(method) Magazine.getList(
    catagoryId: number,
    page?: number,
    pageSize?: number
): Promise<MagazineItem[]>

加载指定类别的期刊列表
(method) Magazine.getIssues(id: number): Promise<IssueItem[]>

获取期刊的分期列表

@param id — 期刊编号
(method) Magazine.getData(
    surl: string,
    issueId: string,
    page?: number,
    pageSize?: number,
    width?: number,
    height?: number
): Promise<BookData>
 
获取期刊正文和目录数据

@param surl — 某期的 surl

@param issueId — 某期编号

@param page — 页码

@param pageSize — 数据条数
(method) Magazine.getCatalog(surl: string, issueId: string): Promise<BookData>

获取期刊目录数据

关于书刊文件

阅读器

  1. https://gede.5read.com/other/epub/read4tm.jsp?a=GEDE:gede.5read.com/g/ce2edfaf66aa4b9885745c62932cb2c7.h (最兼容的)
  2. https://gede.5read.com/o/a.h?a=GEDE:https://gede.5read.com/g/89921215.h (源文件是 PDZX)
  3. https://gede.5read.com/other/epub/nread.jsp?a=GEDE:gede.5read.com/g/7031b6c7bc8b4873a0ebbbf00cc1341d.h (源文件是 PDF)

文件类型

  1. 可直接通过 1 网页阅读器阅读
  2. 无法通过 1 网页阅读器阅读,可通过获取详情后,下载 EPUB 或者 PDF 阅读
  3. 无法通过 1 网页阅读器阅读,可通过 2 或 3 网页阅读器阅读