Skip to content

Download and generate EPUB of your favorite books from Safari Books Online library.

Notifications You must be signed in to change notification settings

flerro/safaribooks

 
 

Repository files navigation

SafariBooks

Download and generate EPUB from Safari Books Online library.
This is only for personal and educational purpose.
Before any usage please read the O'Reilly's Terms of Service.

Original project by Lorenzo Di Fuccia is available here

Overview:

Requirements & Setup:

$ git clone [email protected]:flerro/safaribooks.git safaribooks-my
Cloning into 'safaribooks'...

$ cd safaribooks-my/
$ pip3 install -r requirements.txt

Add credentials to .env

SAFARI_USER=myuser SAFARI_PASSW=mypass

Usage:

Using Docker

Build:

source .env && docker build --build-arg "USER=$SAFARI_USER" --build-arg "PASSW=$SAFARI_PASSW" -t safaribooks .

Download a book:

???

Without docker

Run via the shell script:

$ safaribooks-my/book.sh XXXXXXXXXXXXX

The ID is the digits that you find in the URL of the book description page:
https://www.safaribooksonline.com/library/view/book-name/XXXXXXXXXXXXX/
Like: https://www.safaribooksonline.com/library/view/test-driven-development-with/9781491958698/

Other Dependencies

Bin scripts depennds on the following tools:

  • rclone to sync data to GDrive
  • fd to find file faster

About

Download and generate EPUB of your favorite books from Safari Books Online library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.1%
  • Shell 1.2%
  • Dockerfile 0.7%