Giter Club home page Giter Club logo

dangdang-bug's Introduction

dangdang-bug

离线下载当当html格式图书,支持离线阅读,html转pdf阅读

version

优点

  • 30m左右的html格式图书压缩后大约3m左右
  • 电脑离线阅读
  • 转换pdf后可以在ipad上做笔记
  • 支持断点下载
  • 免费图书可直接下载

须知

本程序适用于以下场景

  • 您已经购买过该云图书
  • 您需要离线阅读的需求
  • 您不会私自分享,侵犯著作人权利

安装

npm install dangdang-bug -g

使用

dangdang [epubID] [token] [mode]
  • epubID 是电子书阅读时候的ID,您在阅读的时候可以在url中看到

epubID

  • token 是下载完整书籍的钥匙,如果您不传token则只能下载试读章节,token可以在网页F12网页控制台的请求中查看到

token

  • mode 下载模式, 有三种下载模式 slow | normal | fast 默认为 normal, 对于章节少的书可以用fast 或者 normal, 章节多的书请用slow

示例

dangdang 1900386571

无token更改模式输入null

dangdang 1900386571 null slow

默认下载到当前命令行运行文件目录,生成格式如下

|-root
|-  [数据]
|-  data
|-    chapter-0.js
|-    chapter-1.js
|-    ...
|-  [阅读目录]
|-  chapter-0.html
|-  chapter-1.html
|-  ...   

Q&A

如何转换pdf?

直接点击书中的打印转换pdf按钮,使用chrome转换pdf

如何合并pdf?

由于转换的pdf都是按章节一节一节的,您可以在网上使用第三方工具转换

下载不完整?

由于token过期时间短,请每隔一段时间查看更新一下你输入的token

声明

请您遵循上述须知协议,书籍宝贵,请勿盗用

book

dangdang-bug's People

Contributors

jon-millent avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.