-
Notifications
You must be signed in to change notification settings - Fork 2
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
Login captcha #8
base: main
Are you sure you want to change the base?
Conversation
allow the user to provide a captcha code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dzięki za kontrybucje. Rozumiem, że to będzie działać tak w przypadku captchy, że użytkownik najpierw musi się zalogować na cda.pl, skopiować tą wartość z captchy, wrócić do terminala i zalogować się jeszcze raz w terminalu? Czy w takim przypadku ten recaptcha-response
nie będzie inny?
@@ -51,6 +51,8 @@ def __init__(self, args: argparse.Namespace) -> None: | |||
self.login, self.password = args.login, None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.login, self.password = args.login, None | |
self.login, self.password, self.captcha = args.login, None, None |
@@ -51,6 +51,8 @@ def __init__(self, args: argparse.Namespace) -> None: | |||
self.login, self.password = args.login, None | |||
if self.login is not None: | |||
self.password = getpass(f"Podaj hasło dla {self.login}: ") | |||
self.captcha = getpass(f"Podaj captche (po rozwiązaniu captchy wklej $('textarea#g-recaptcha-response').val() w konsoli i skopiuj wynik: \n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.captcha = getpass(f"Podaj captche (po rozwiązaniu captchy wklej $('textarea#g-recaptcha-response').val() w konsoli i skopiuj wynik: \n") | |
self.captcha = getpass(f"Rozwiąż captchę, wklej $('textarea#g-recaptcha-response').val() do konsoli przeglądarki i podaj wynik, lub zostaw to pole puste, jeśli nie było captchy: \n") |
allow the user to provide a captcha code