packt-cli / Packt-Publishing-Free-Learning

Scripts that automatically claim and download free daily eBooks from https://www.packtpub.com/packt/offers/free-learning
MIT License
858 stars 185 forks source link

Captcha timeout #197

Open Mte90 opened 4 years ago

Mte90 commented 4 years ago

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 
mjenczmyk commented 4 years ago

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.

seswho commented 2 years ago

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.

laurentlemercier commented 2 years ago

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