Skip to content

Small tool allowing you to download Packtpub.com ebooks from a registered account. Now automatically acquires the ebook to your account.

License

Notifications You must be signed in to change notification settings

optionalg/PacktpubDownloaderAndGetter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packtpub Downloader + Getter


Packtpub Downloader is a small tool that allows any registered account to automatically download all the ebooks (ps: more options to come). It will download everything: .pdf, .mobi, .epub and the zip file if any.

Packpub Downloader screenshot

How to use

It is always better to create a virtual environment to isolate Python environments.

Assuming you already have a working Python environment set up, open up a terminal and refer to the virtualenv webpage to set up everything.

Installing the dependencies

Now that you have the sourced the environment, run the following to install the dependencies:

pip install -r requirements.txt

Using Packtpub Download

The username and password are mandatory:

python pbdl.py -u myemail@mail.com -p mypassword

I've set up multiple arguments for you to provide, those can be shown using the following command:

python pbdl.py --help

Using Packtpub Getter

The username and password are mandatory:

python pbdl.py -u myemail@mail.com -p mypassword

I've set up multiple arguments for you to provide, those can be shown using the following command:

python pbdl.py --help

What for?

Packtpub.com has a free ebook available each day, I didn't want to download my 100+ ebooks I had on my account, so I developed this.

If you feel in the same situation, feel free to use this :)

Changelogs

pbdl.py (Downloads the ebook)

v0.5 (March 22, 2017)

  • [FEATURE] Adds a check if the file has been already downloaded before (so it won't download it again)
  • [FIXED] Identation (2 spaces)

v0.3 (October 06, 2016)

  • [FIXED] Hotfix on UTF-8 encoding

v0.2 (October 06, 2016)

  • [FIXED] Some URL weren't downloading
  • [IMPROVED] CLI is now almost beautiful
  • [IMPROVED] Speed

v0.1 (October 06, 2016)

  • First version, some things are working.

pbget.py (Acquires today's ebook to your account)

v0.1 (April 25, 2017)

  • First version, some things are working. --sms for smaller output (only stdout the ebook name or error if any).

Development

Want to contribute? Great! You're welcome to make some pull requests!

Todos

  • Not much, maybe a multithreading downloader

License

MIT

Free Software, Hell Yeah!

About

Small tool allowing you to download Packtpub.com ebooks from a registered account. Now automatically acquires the ebook to your account.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%