This project fetches relevant data from Safari Books Online pages and generates a single pdf with the content.
- Install sbd with pip
$ pip install sbd
- Install wkhtmltopdf
- Debian/Ubuntu:
$ sudo apt-get install wkhtmltopdf
- Windows and other options: check wkhtmltopdf homepage for binary installers
$ usage: sbd [-h] [-u LOGIN] [-p PASSWORD] safari_book_url
You need to pass the credentials to your Safari Books online account followed by the URL of the book you wish to download.
$ sbd -u login -p password https://www.safaribooksonline.com/library/view/reactive-web-applications/9781633430099/
An alternative is to set your credentials in environmental variables:
$ export SBD_LOGIN='your_login'
$ export SBD_PASSWORD='your_password'
$ sbd https://www.safaribooksonline.com/library/view/reactive-web-applications/9781633430099/