Public | Automated Build

Last pushed: a year ago
Short Description
A simple container to wrap the script
Full Description

Grab a book a day for free from Packt Pub, using python.

Inspired by


  • clone this repo

    git clone'cd`

  1. install required modules

    pip install -r requirements.txt

  2. Run the script

    python -e <your packt account email> -p <your password>

This script will add it to your library where you can download it in a variety of formats.

You can run it through cron if you really want.

The script contains the following options for configuration:

  1. using a config file a simple json file like the config.json
  2. using environent variables with the word config appended to them: CONFIG_EMAIL, CONFIG_PASSOWRD
  3. using the flags

if you will not supply a password in any way it will drop into interactive mode and wait for password

You can also run it using docker with the following command:

docker run -it srgrn/ -e email -p password

or with downloading the files and using a config file

docker run --rm -it -v books:/src/books -v $(pwd)/config.json:/src/config.json srgrn/ -c config.json

Docker Pull Command
Source Repository