0

Im trying to login at Google with Selenium and Python, but there's always an error "The Browser is not secure". I read that Google detects the automation and throws an error then. One guy here said that it's possible to just login trough another Page using Google, but it does not work anymore. So how can I login at Google using Selenium and Python?

Or to specify it more: I am looking for a verification code that was sent to the email, is there a better way to get it?

ADADBA
  • 33
  • 5
  • The browser knows that you are using automation software, and probably passes this information to websites. Gmail probably doesn't allow you to log in for security purposes. – DapperDuck Jan 15 '21 at 23:51

1 Answers1

0

While trying to login into GMail using Selenium, this error...

This browser or app may not be secure

...implies there can be either/all of the following issues:

  • Less secure apps & your Google Account: If an app or site doesn’t meet Google's security standards, Google might block anyone who’s trying to sign in to your account from it. Less secure apps can make it easier for hackers to get in to your account, so blocking sign-ins from these apps helps keep your account safe.

  • If "Less secure app access" is on for your account: Because less secure apps can make your account more vulnerable, Google will automatically turn this setting off if it’s not being used. If "Less secure app access" is still on for your account, its recommended turning it off now and switching to more secure apps. To Turn off "Less secure app access":

    • Go to the Less secure app access section of your Google Account. You might need to sign in.
    • Turn Allow less secure apps off.
  • If "Less secure app access" is off for your account: If "Less secure app access" is turned off for your account, you can turn it back on. It is recommend switching to more secure apps instead.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
  • Thanks for that reply, but I did not really understand wheter I have to turn "Allow less secure apps" on or off to avoid googles error message? – ADADBA Jan 16 '21 at 10:24
  • Ok. No matter if "Allow less secure apps" is switched on or off. The error is thrown. – ADADBA Jan 16 '21 at 10:55