Giter VIP home page Giter VIP logo

freepacktbook's Introduction

freepacktbook

image

image

Claim Your Free PacktPub eBook automatically.

Quickstart:

Freepacktbook uses paid captcha solving service Anti-Captcha (referral link), which costs $2 for 1k captchas.

Claim your daily free PacktPub ebook and download it:

Download all your ebooks:

freepacktbook allows you to backup all your ebooks and code files.

To see more information:

Cron configuration:

Edit the current crontab:

Add the following lines:

This command shows the direct path to claim_free_ebook:

Notifications (optional)

Slack integration

Set additionally the following environment variables:

image

Pushover integration

Set additionally the following environment variables:

Docker image

You can build your own docker image containing configured cron service. By default, the claim_free_ebook command is run daily at 8:00am CEST. See Dockerfile.

Build an image:

If you want to change the default time zone, use the TZ build argument:

Run a new container:

The PACKTPUB_ARGS env variable passes the additional arguments to the claim_free_ebook command:

Also available on Docker Hub bogdal/freepacktbook:latest

freepacktbook's People

Contributors

bogdal avatar lenisko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

freepacktbook's Issues

Captcha security

get_book_details
    claim_url = page.find('div', {'class': 'free-ebook'}).a['href']
TypeError: 'NoneType' object is not subscriptable

markup:

<form action="/freelearning-claim/24938/21478" method="POST">
<div class="twelve-days-claim" id="packt-freelearning-submit-claim">
<div class="book-claim-token-inner">
<div class="book-claim-token-logo"></div>
<div class="book-claim-token-separator"></div>
<input class="form-submit" type="submit" value="Claim Your Free eBook"/>
</div>
</div>
<div id="popup-recaptcha"></div>
</form>

Ability to Claim the book to account without downloading it

Is there a way to claim without downloading the book to local? I was assuming claim_free_ebook would only claim the book to our account and download_ebooks would actually download them. Looks like it is not the case.

It would be great if you can add that option

Claim check

Hello there.

What do you think about fetching https://www.packtpub.com/packt/offers/free-learning and https://www.packtpub.com/account/my-ebooks to check if we don't own new book already just before running Anti-Captcha API request?

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.