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

Login captcha #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Login captcha #8

wants to merge 1 commit into from

Conversation

marzenie
Copy link

allow the user to provide a captcha code

allow the user to provide a captcha code
@marzenie marzenie changed the title Update downloader.py Login captcha Jul 25, 2024
Copy link
Owner

@H4wk507 H4wk507 left a 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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")

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

Successfully merging this pull request may close these issues.

2 participants