packt-cli / Packt-Publishing-Free-Learning

Scripts that automatically claim and download free daily eBooks from https://www.packtpub.com/packt/offers/free-learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Captcha timeout

Mte90 opened this issue · comments

I am getting this, it is possible to let retry multiple times?

2020-07-09 09:58:47,816 - utils.anticaptcha - [INFO] - Started solving ReCAPTCHA for https://www.packtpub.com/ website...
2020-07-09 09:58:48,484 - utils.anticaptcha - [INFO] - Waiting for completion of the 733507594 task...
2020-07-09 10:00:49,166 - packtPublishingFreeEbook - [ERROR] - Exception occurred Timeout 120 reached 

Currently it's not possible, but it shouldn't be very hard to make it possible. I'm quite busy recently, but I may have a look at it in the future.

I am seeing the same problem as Mte90.

is there a way to return a non zero value from pack-cli when there is any sort of failure?

The return code could be used in a scheduled script to run packt-cli until the book was successfully downloaded.

@seswho : Tested quickly but seems to work. I am interested by your script for scheduling.