A SafariBooksOnline downloader that generates .epub books for reading offline
![]() |
This project has been abandoned: It was forked from SafariBooks-Downloader, also abandoned, and I made some updates here to test some ideas, but I’m not going to maintain it. You can fork it and continue the work if you want. |
---|---|
A SafariBooksOnline downloader that generates .epub books for reading offline.
This project was forked from the original SafariBooks-Downloader, created by Nico Haenggi, currently not maintained.
Obviously you need to have a paid membership to be able to read and access the books, this is not a tool to get free books. It’s just to give you the option to read the books you already has access to, but in an offline way.
Install Node.js. For more information about how to install it on your environment, see Installing Node.js via package manager. To verify your installation, run:
node -v
If a version is returned, you did successfully install Node.js.
Important: This project has been updated to use ES6 standard modules, instead of traditional CommonJS Modules used in node. To be able to use that feature, you need to execute node using the flag --experimental-modules
(already specified in the index.js main file). Double check your node version is at least v12. It’s recommended to use the Node version manager (nvm
) to manage different node installations.
Next up, make sure npm is properly installed. To verify, run:
npm -v
If the command returns a version number, you’re all set. Next, we’ll clone the repository.
git clone https://github.com/neverbot/safari-hunter.git
cd safari-hunter
Install all the dependencies with npm.
npm install
Congratulations! You’ve successfully installed safari-hunter
.
If you desire to do so, you can install the tool globally on your machine. To do so, run:
npm install -g
To verify the installation, please run:
safari-hunter --version
If the command returns a version number, you have successfully installed the tool globally.
git pull
npm install
or npm install -g
npm install -g
will install the generator globallysafari-hunter --version
The tool provides the following six options. The options —bookid, —username, —password and —output are required. However, if the username and password options are provided once, they will be cached and are no longer required to run the CLI.
https://learning.oreilly.com/library/view/clean-code/9780136083238/
whereas the id will be 9780136083238
An example showing how a SafariBooksOnline with id 9780136083238 is downloaded and converted into a ePub file testbook.epub.
safari-hunter -b 9780136083238 -u yourUser -p yourPassword -o /Users/yourUser/Desktop/testbook.epub
An example showing how a SafariBooksOnline with id 9780136083238 is downloaded and converted into a ePub file testdebugbook.epub.
safari-hunter -d -b 9780136083238 -u yourUser -p yourPassword -o /Users/yourUser/Desktop/testbook.epub
Tip: If your password contains a hyphen (-
), a whitespace or some other character that does not allow you to use the command, your can use single quotes: -p 'yourPassword'
.
If you discover a bug in the generator, please search the issue tracker first. If it hasn’t been reported, please create a new issue.
If you have a great idea to improve the generator, please search the feature tracker first to ensure someone else hasn’t already come up with the same great idea. If it hasn’t been requested, please create a new request. While you’re there vote on other feature requests to let the me know what is most important to you.
If you’d like to make your own changes ensure your Pull Request is made against the develop
branch.
--link
command line option.Released under the MIT License