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

can't log in to duo #28

Open
plytwi opened this issue Dec 17, 2022 · 5 comments
Open

can't log in to duo #28

plytwi opened this issue Dec 17, 2022 · 5 comments

Comments

@plytwi
Copy link

plytwi commented Dec 17, 2022

even if i have the right password and username/email(i copy-pasted it into a normal browser and it worked lke normal), it says wrong password no matter what
and if i dont do -a, it closes p much as soon as i click i already have an account
why does it time out anyways?

@theharshnemesis
Copy link

theharshnemesis commented Dec 18, 2022

This is because the bot uses chromedriver.. and google chrome being a crap browser lets websites know you're running the webdriver(you're using automation). Chrome literally allows the website to check for that flag and block logins and this week Duolingo started doing just that(If it detects webdriver, it will simply say wrong password, no matter what).

To make the bot work again, you must use any browser, that does not tell websites, what's none of their business(such as which extensions you run). One such browsers is firefox.

Selenium works just fine on firefox, you install extension and put the geckodriver.exe in the folder... but the script needs to be adjusted to work with geckodriver.exe. I have tried simply renaming it to chromedriver.exe, but still wont work.. it's not that easy.

Another possible way that might work, is to try to bypass the need to login with the bot, If you somehow inject the session cookie to that clean chrome instance that the webdriver is using. If duolingo doesn't boot you out for using selenium, which it can detect now(it very likely they did a halfassed job) then we can continue using chrome.

@drknzz
Copy link
Owner

drknzz commented Dec 18, 2022

So it seems that Duolingo changed something recently regarding automated tools in browsers.
I tried to fix it by using both Firefox browser and undetected_chromedriver.
Sadly, neither resulted in a success so far.

@plytwi
Copy link
Author

plytwi commented Dec 18, 2022

hm. weird

@vladlemos
Copy link

chrome_options.add_argument('--disable-blink-features=AutomationControlled')
chrome_options.add_experimental_option("excludeSwitches", ["enable-automation"])
chrome_options.add_experimental_option('useAutomationExtension', False)

It Works with gmail password; But the learn mode is not working;

@kinhadthu
Copy link

chrome_options.add_argument('--disable-blink-features=AutomationControlled')
chrome_options.add_experimental_option("excludeSwitches", ["enable-automation"])
chrome_options.add_experimental_option('useAutomationExtension', False)

It Works with gmail password; But the learn mode is not working;

Excuse me but... where can I put those 3 sentences ?

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

5 participants