Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Latest commit

 

History

History
50 lines (26 loc) · 1.17 KB

README.rst

File metadata and controls

50 lines (26 loc) · 1.17 KB

sbd - A python tool to convert Safari Books Online resources into PDF.

This project fetches relevant data from Safari Books Online pages and generates a single pdf with the content.

Installation

  1. Install sbd with pip
$ pip install sbd
  1. Install wkhtmltopdf
  • Debian/Ubuntu:
$ sudo apt-get install wkhtmltopdf
  • Windows and other options: check wkhtmltopdf homepage for binary installers

Usage

$ 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/