SafariBooks-Downloader is a project created and maintained by Nico Haenggi. This version is an unattended version to download books using SSO modified by Adán Carrasco.
Install Node.js. We recommend the LTS release. The SafariBooks-Downloader has been tested on most node versions between v4.4.5 and v.6.9.5 and should therefore cause no problems running on one of these versions. 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. 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/adancarrasco/SafariBooks-Downloader.git
cd SafariBooks-Downloader
Install all the dependencies with npm.
npm install
Congratulations! You've successfully installed SafariBooks-Downloader.
You need to update the cookie
property in the .config
file + the bookid
that you'd want to download.
- Open Safari Books Online and login in Chrome
- Open the
Developer Tools
- Go to
Network
pane - Go to the book that you'd want to download (look for the book id in the url, for example:
9781491925607
) - Look and copy the
cookie
as in the following image - Paste the
cookie
andbookid
in.config
file - Run the following command:
npm run safaribooks-downloader
That's it, the epub will be created under books
folder, if there's an issue you might need to create the folder by your own.
- generating ePub with cover image, authors and publisher
- custom stylesheets will be imported (only one currently)
- Nico Haenggi: conception & development
- cyrilis: a big thanks to cyrillis for his epub-gen package which I relied upon heavily while integrating my own epub generator
- Adán Carrasco: Unattended version for SSO usage via cookie
Copyright (c) 2017 Nico Haenggi - Released under the MIT License
If you want to use this using normal login please follow the instructions in: SafariBooks-Downloader