Code Monkey home page Code Monkey logo

packtpub-library-downloader's Introduction

PacktPub Library Downloader

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

Usage:

python downloader.py -e <email> -p <password> [-d <directory> -b <book assets> -v <video assets>]
Example: Download books in PDF and EPUB formats and accompanying source code
python downloader.py -e [email protected] -p p@ssw0rd -d ~/Desktop/packt -b pdf,epub,code
Example: Download videos, their cover image, and accompanying source code
python downloader.py -e [email protected] -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 [email protected] -p p@ssw0rd -d ~/Desktop/packt -c course,cover,code
Example: Download everything
python downloader.py -e [email protected] -p p@ssw0rd -d ~/Desktop/packt -b pdf,epub,mobi,cover,code,info -v video,cover,code -c course,cover,code

Commandline Options

  • -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

Dependencies:

  • Requests for HTTP requests:

      pip install requests
    
  • lxml for HTML parsing:

      pip install lxml
    

Tested working on Python 2.7.11 and Python 3.6.0 :: Anaconda 4.3.0 (64-bit)

packtpub-library-downloader's People

Contributors

3rgo avatar dan-and avatar heindrichpaul avatar irzan2010 avatar ozzieperez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.