Agree: Packtpub all ebooks free download
WEATHER PROGRAM DOWNLOAD FREE | |
BEYBLADE G REVOLUTION TORRENT DOWNLOAD | |
GOLDILOCKS AND THE THREE BEARS EASY FREE PDF DOWNLOAD | |
WINDOWS 10 BOOT DVD DOWNLOAD |
packt 1.5.5
Free Learning Packt Publishing script
is a Python script that allows to automatically grab and download a daily Free Learning Packt ebook from https://www.packtpub.com/packt/offers/free-learning. You can also use it to download already claimed ebooks from your Packt account.
The script uses com
Installation
To install current version of script simply run
You may want to install it inside new virtualenv.
Usage
The script might be executed with several optional arguments.
- Option -g [--grab] - claims (grabs) a daily eBook into your account
- Option -gd [--grabd] - claims (grabs) a daily ebook and downloads the title afterwards to the location specified under [download_folder_path] field (configFile.cfg file)
- Option -da [--dall] - downloads all ebooks from your account
- Option -sgd [--sgd] - claims and uploads a book to [gdFolderName] folder onto Google Drive (more about that in Google Drive API Setup section)
- Option -m [--mail] - claims and sends an email with the newest book in PDF format (and MOBI if is also downloaded; see mail options confguration under [MAIL] path in configFile.cfg)
- SubOption -sm [--status_mail] - sends fail report email whether script execution was successful
- SubOption -f [--folder] - downloads an ebook into a created folder, named as ebook's title
- SubOption -c [--cfgpath] - selects folder where config file can be found (default: cwd)
Example
Download all ebooks in all available formats (pdf, epub, mobi) with zipped source code file from your Packt account.
To download all ebooks in all available formats from your Packt account, you have to prepare your config file as shown below:
run:
Scheduled script execution setup
Debian
On Debian (and any Debian-based Linux distribution) you may use cron job to schedule script execution. To do this run and add the following line to crontab file.
Adjust execution time and paths according to your setup. To verify if cron executes the script as expected, run
Windows
schtasks.exe setup (more info: https://technet.microsoft.com/en-us/library/cc725744.aspx) :
To create the task that will be called at 12:00 everyday, run the following command in cmd (modify all paths according to your setup):
To check if the "grabEbookFromPacktTask" has been added to all scheduled tasks on your computer:
To run the task manually:
To delete the task:
If you want to log all downloads add -l switch to grabEbookFromPacktTask i.e.
If you want to additionaly make command line windows stay open after download add -p switch i.e.
Google Drive API Setup
Full info about the Google Drive Python API can be found here.
- Turn on the Google Drive API
- Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click , then .
- On the , click the button.
- At the top of the page, select the tab. Select an email address, enter a product name if not already set, and click the Save button.
- Select the tab, click the button and select .
- Select the application type , enter the name , and click the button.
- Click to dismiss the resulting dialog.
- Click the file_download () button to the right of the client ID.
- Move this file next to the config file and rename it to .
- Create credentials folder:
- Simply, just fire up the script with argument; During first launch you will see a prompt in your browser asking for permissions, click then allow
- Or if you're unable to launch browser locally (e.g. you're connecting through SSH without X11 forwarding) use this command once, follow instructions and give permission and later you can use normal command (without ).
The command parameters number and their order is important!
- Already done!
- Run the same command as above to claim and upload the eBook to Google Drive.
In case of any questions feel free to ask, happy grabbing!

-
-