digi4offline
v1.3.1
Published
Node.js based command line tool for downloading digi4school books as PDFs for offline use.
Downloads
20
Maintainers
Readme
digi4offline
Download digi4school books as PDF.
npm install -g digi4offline
Usage
Run digi4offline [options]
or node bin/digi4offline.js [options]
Options:
-e, --email <address> Your digi4school login email
-b, --book <id> The id of the book you want to download
-o, --out <name> Output path, can specify file or folder
-p, --password <password> Your digi4school login password (not recommended)
-r, --ranges <ranges> Page ranges, i.e.: 5-10,12,15-
--dop <degree> The amount of pages that can be downloaded at the same time (default: 5)
--pageRetries <retries> How often a page download should be retired (default: 10)
--imageRetries <retries> How often a image download should be retired (default: 10)
-l, --labels Use page labels instead of indices for ranges
-h, --help display help for command
The password argument is optional. When not provided you will be prompted to input your password into the terminal. This way is recommended because you password will be hidden.
The book id is part of the url of an open book. (The book must be activated for your account) e.g.:
for /ebook/5432/1/index.html the id is 5432/1
for /ebook/3404/ the id is 3404
This only works for books that are directly hosted on digi4school.at, for other domains go to your bookshelf (https://digi4school.at/ebooks), right-click the book that you want to download, and select "Copy link address". Use it as the book id. Example: "https://digi4school.at/ebook/10q594mvaytx".
Setup
- Download and install node from https://nodejs.org/en/download/
- Open a terminal
- Run
npm install -g digi4offline
- See Usage
Notes
LTI means Learning Tools Interoperability.