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

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

License

Notifications You must be signed in to change notification settings

lmyslinski/sbd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published