Automatically Google login by selenium [Python]
-
Set variables on
.env
file// .env GOOGLE_ID = "" // Google-email GOOGLE_PW = "" // Google-password // USER_DATA_DIR = "C:\\Users\\User\\AppData\\Local\\Google\\Chrome\\User Data\\Default" GOOGLE_LOGIN_PATH = "https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent.com&scope=email&access_type=offline&flowName=GeneralOAuthFlow"
-
If you are Google Mobile Two-factor Authentication
... # wait # time.sleep(100) <- Remove this comment and prove it ...
- Windows10
- Python 3.6
- Selenium 3.141.0
© 2021 XENIA101 - Released under GPL License 2.0