Automatically download all your eBooks and videos. (See: PacktPub Free Daily Book)
python downloader.py -e <email> -p <password> [-d <directory> -b <book assets> -v <video assets>]
python downloader.py -e hello@world.com -p p@ssw0rd -d ~/Desktop/packt -b pdf,epub,code
python downloader.py -e hello@world.com -p p@ssw0rd -d ~/Desktop/packt -v video,cover,code
Example: Download Integrated Courses (Interactive-Ebooks), their cover image, and accompanying source code
python downloader.py -e hello@world.com -p p@ssw0rd -d ~/Desktop/packt -c course,cover,code
python downloader.py -e hello@world.com -p p@ssw0rd -d ~/Desktop/packt -b pdf,epub,mobi,cover,code,info -v video,cover,code -c course,cover,code
- -e, --email = Your login email
- -p, --password = Your login password
- -d, --directory = Directory to download into. Default is "packtpub_media/" in the current directory
- -v, --videos = Assets to download. Options are: video,cover,code
- -b, --books = Assets to download. Options are: pdf,mobi,epub,cover,code,info
- -c, --courses = Assets to download. Options are: course,cover,code
Video Assets
- video: The video file
- cover: Cover image
- code: Accompanying source code
Book Assets
- pdf: PDF format
- mobi: MOBI format
- epub: EPUB format
- cover: Cover image
- code: Accompanying source code
- info: Creates a JSON file with the title, ISBN, # of pages, and description. (note: it slows downloads)
Course Assets
- course: The interactive ebook (with integrated videos etc.)
- cover: Cover image
- code: Accompanying source code
Tested working on Python 2.7.11 and Python 3.6.0 :: Anaconda 4.3.0 (64-bit)