lmbringas / Packtpub Downloader
Script to download all your books from PacktPub inspired by https://github.com/ozzieperez/packtpub-library-downloader
Stars: ✭ 156
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Packtpub Downloader
Aeneas
aeneas is a Python/C library and a set of tools to automagically synchronize audio and text (aka forced alignment)
Stars: ✭ 1,942 (+1144.87%)
Mutual labels: cli
Prism
Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
Stars: ✭ 2,484 (+1492.31%)
Mutual labels: cli
Pully
A simple CLI and library for downloading high quality YouTube videos!
Stars: ✭ 153 (-1.92%)
Mutual labels: cli
Fastscript
A fast way to turn your python function into a script
Stars: ✭ 155 (-0.64%)
Mutual labels: cli
Investigator
Interactive and asynchronous logging tool for Node.js. An easier way to log & debug complex requests directly from the command line (experimental).
Stars: ✭ 155 (-0.64%)
Mutual labels: cli
Microplane
A CLI tool to make git changes across many repos, especially useful with Microservices.
Stars: ✭ 154 (-1.28%)
Mutual labels: cli
React Native Rename
Rename react-native app with just one command
Stars: ✭ 2,033 (+1203.21%)
Mutual labels: cli
Keep A Changelog
Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
Stars: ✭ 155 (-0.64%)
Mutual labels: cli
Actions Cli
Monitor your GitHub Actions in real time from the command line
Stars: ✭ 156 (+0%)
Mutual labels: cli
Backport
A simple CLI tool that automates the process of backporting commits on a GitHub repo
Stars: ✭ 154 (-1.28%)
Mutual labels: cli
PacktPub Downloader
Script to download all your PacktPub books inspired by https://github.com/ozzieperez/packtpub-library-downloader
Since PacktPub restructured their website packtpub-library-downloader became obsolete because the downloader used webscraping. So I figured out that now PacktPub uses a REST API. Then I found which endpoint to use for downloading books and made a simple script. Feel free to fork and PR to improve. Packtpub's API isn't documented :'(
Usage:
pip install -r requirements.txt
python main.py -e <email> -p <password> [-d <directory> -b <book file types> -s -v -q]
Example: Download books in PDF format
python main.py -e [email protected] -p [email protected] -d ~/Desktop/packt -b pdf,epub,mobi,code
Docker integration
You must put your data in the .env
file.
mv data.env-sample data.env
and replace the sample data with your login credentials.
docker-compose up
After the execution, you can see the content in the book
directory.
Commandline Options
- -e, --email = Your login email
- -p, --password = Your login password
- -d, --directory = Directory to download into. Default is "media/" in the current directory
- -b, --books = Assets to download. Options are: pdf,mobi,epub,code
- -s, --separate = Create a separate directory for each book
- -v, --verbose = Show more detailed information
- -q, --quiet = Don't show information or progress bars
Book File Types
- pdf: PDF format
- mobi: MOBI format
- epub: EPUB format
- code: Accompanying source code, saved as .zip files
I'm working on Python 3.6.0
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].