packtpub

Download freely offered books from packtpub.com.

TLDR

Download the daily offer book into the current directory with the specified book format (defaults to pdf)

$ packtpub download --type [pdf|ebup|mobi]
copy


Download the daily offer book into the specified directory
$ packtpub download --dir [path/to/directory]
copy


Start an interactive login to packtpub.com
$ packtpub login
copy


Log out from packtpub.com
$ packtpub logout
copy


Display the daily offer
$ packtpub view-offer
copy


Open the daily offer in the default web browser
$ packtpub view-offer
copy


Display the currently logged-in user
$ packtpub whoami
copy

Copied to clipboard