I am trying to build a python bot that logs into my Google account automatically with python. I tried with selenium but as soon as the bot had opened the page the login wouldn't work. Google said you can't log in to your account with Automatic test software. Is there an alternative to selenium Google does not recognize as Automatic Test software? Maybe automatic software which is not for testing?
Asked
Active
Viewed 607 times
0
-
I'm guessing that simply changing the Selenium browser's default user-agent would do the trick. – Paul M. Nov 05 '20 at 18:30
1 Answers
0
Selenium can already do this (by exploiting a bypass).
The following link comes from the Google OAuth Playground, ensuring the practicality of the link. It most likely won't expire any time soon.
You can use that link (ie. driver.get()) to log into your Google account.
This bypasses the automation checks allows you to log into Google using Selenium. At least for now.
You don't need a Selenium alternative to do this :)
UPDATE: As of January 2021, this no longer works.