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
- Requirements & Setup
- Usage
- Example: Download Test-Driven Development with Python, 2nd Edition
- Example: Use or not the
--no-kindle
option
$ 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
Build:
source .env && docker build --build-arg "USER=$SAFARI_USER" --build-arg "PASSW=$SAFARI_PASSW" -t safaribooks .
Download a book:
???
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/
Bin scripts depennds on the following tools: