auto-lingo icon indicating copy to clipboard operation
auto-lingo copied to clipboard

can't log in to duo

Open plytwi opened this issue 2 years ago • 5 comments

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?

plytwi avatar Dec 17 '22 21:12 plytwi

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.

theharshnemesis avatar Dec 18 '22 11:12 theharshnemesis

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.

drknzz avatar Dec 18 '22 17:12 drknzz

hm. weird

plytwi avatar Dec 18 '22 19:12 plytwi

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;

vladlemos avatar Dec 19 '22 15:12 vladlemos

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 ?

kinhadthu avatar Jan 28 '23 16:01 kinhadthu