xtekky/google-login-bypass

Use Seleniumbase instead

Fakesum opened this issue · 0 comments

Using Seleniumbase with the uc=True argument is much more reliable at this. The latest version of undetected chromedriver has problems with google login.

It should look something like:

from seleniumbase import SB
class Google:
    def __init__(self) -> None:
        self.url    = 'https://accounts.google.com/ServiceLogin'
        self.time   = 10
    
    def login(self, email, password):
        with SB(uc=True) as driver:
                sleep(2)
                driver.type('identifier', f'{email}\n', By.NAME)
                sleep(2)
                driver.type( 'Passwd', f'{password}\n', By.NAME)

                self.code()

    def code(self):
    # [ ---------- paste your code here ---------- ]
        sleep(self.time)

seleniumbase also handles:

  • chromedriver installation
  • Element Detection