flerro / safaribooks

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com: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.


Languages

Language:Python 98.1%Language:Shell 1.2%Language:Dockerfile 0.7%