Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 975 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 975 Bytes

PacktPub Library Downloader

Automatically download all your eBooks. (See: PacktPub Free Daily Book)

How to use it:

python downloader.py -e <email> -p <password> [-f <formats> -d <directory> --include-code]
Example: Download PDFs, EPUBs, and source code to my Desktop
python downloader.py -e '[email protected]' -p 'p@ssw0rd' -f 'pdf,epub' -d '~/Desktop' -c

Options

-e, --email = Your login email -p, --password = Your login password -f, --formats = File formats to download. Default is "pdf,mobi,epub" -d, --directory = Directory to download into. Default is "packt_ebooks/" in the current directory -c, --include-code = Flag to include code files, if any

Dependencies:

  • Requests for HTTP requests:

      pip install requests
    
  • lxml for HTML parsing:

      pip install lxml
    

Tested working on Python 2.7.11