Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken login #26

Open
SirMikeDouglas opened this issue Nov 19, 2019 · 10 comments
Open

Broken login #26

SirMikeDouglas opened this issue Nov 19, 2019 · 10 comments

Comments

@SirMikeDouglas
Copy link

Looks like PaktPub changed their login code. The script now fails on login. I noticed the website also doesn't have a "claim now" button, just an "Access Now" button.

@lmbringas
Copy link
Owner

lmbringas commented Nov 19, 2019

Hey, yes, now PacktPub login has a captcha so this script won't work. Sorry, it was fun while it lasted.

@ckykenken
Copy link

Luckily. Packt has just unlocked all claimed items from free learning available to download as epub, mobi and pdf formats. Your code has been caught by Packt and so they changed their code

@SirMikeDouglas
Copy link
Author

RE: it was fun while it lasted
Yes it was, kudos on the good work.

RE: login has a captcha so this script won't work
Web automation maybe? Launch a browser, login manually, automate away....just a thought. :)

@ckykenken
Copy link

Bad news, Packt has just 'fixed' their bug. The free learning is no longer available to download as offline formats

@ckykenken
Copy link

Good news: the downloader is working again!

@Reiner030
Copy link

sadly not today for me but thanks

it was fun while it lasted

Error login,  check user and password
Traceback (most recent call last):
  File "packtpub-downloader-async/main.py", line 403, in <module>
    main(sys.argv[1:])
  File "packtpub-downloader-async/main.py", line 388, in main
    user = User(email, password, quiet)
  File "/home/reiner/packtpub-downloader-async/user.py", line 25, in __init__
    self.header["Authorization"] = self.get_token(self.quiet)
  File "/home/reiner/packtpub-downloader-async/user.py", line 41, in get_token
    print("Error {}".format(e))
NameError: name 'e' is not defined

@ckykenken
Copy link

Probably the anti-not measure has been fixed by Packt. RIP.

@blackout314
Copy link

me too, but strange thing.. on my mac works, on my rpi not

@vancha
Copy link
Contributor

vancha commented Feb 25, 2020

as of the 25th of februari 2020, I have just tested this script, and it seems to work fine. It's downloading all date in all formats right now(maybe you've fixed in in the meantime?) for passwords containing special characters just make sure you use single quotes, as in -p 'P@ssWord!1', otherwise it won't be escaped properly :)

@realPilotfish
Copy link

One day it works, another day ist does not.

I added a print statement to see what the auth gets back.
When it does not work, the reason for this seems to be a missing captcha answer:
{'message': 'The recaptcha solution is missing.', 'errorCode': 7000035, 'errorId': '7b79509d-b03c-4d29-ae32-20f3ed7dc6b2'}

Some time later, the same call works just fine and the downloader manages to pull all the missing content.

Repository owner deleted a comment Feb 15, 2024
Repository owner deleted a comment from raviikushh Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@Reiner030 @blackout314 @lmbringas @vancha @ckykenken @realPilotfish @SirMikeDouglas and others