Does google block selenium login

augustwu

BANNED
Joined
Oct 18, 2018
Messages
1,500
Reaction score
300
I've tried several hours to login in google account
with selenium but always failed
even with manual login google account in the selenium browser failed
I am quite annoying, anyone has the same problem?

Couldn't sign you in
This browser or app may not be secure. https://support.google.com/accounts/answer/7675428?hl=en
Try using a different browser. If you’re already using a supported browser, you can refresh your screen and try again to sign in.
 
Selenium cannot be used for this purpose,even I tried to make an account creator but failed badly.Google detects it easily.
 
Selenium cannot be used for this purpose,even I tried to make an account creator but failed badly.Google detects it easily.
So what’s the method of login google and do automatic action?
 
I have always been able to login to Google with Selenium, even automated login, don't know why you seem to have a problem...
 
I also have had no issue logging in using selenium before.
 
Are you try ?

Windows 10 Pro
Chrome Version 83.0.4103.97 (Official Build) (64-bit)
selenium ChromeDriver 83.0.4103.39
 
Are you try ?

Windows 10 Pro
Chrome Version 83.0.4103.97 (Official Build) (64-bit)
selenium ChromeDriver 83.0.4103.39
I just tried this version on window12 and firefox, both are not work
Am I miss something?

Code:
chrome_options = webdriver.ChromeOptions()

chrome_options.add_argument('--user-agent="Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"')
chrome_options.add_argument("--disable-web-security")
chrome_options.add_argument('--disable-gpu')  # Last I checked this was necessary.
chrome_options.add_argument('--no-sandbox') # Bypass OS security model
chrome_options.add_argument("--incognito")
chrome_options.add_argument("--lang=en-us")

chrome_options.add_argument('--disable-gpu')  # applicable to windows os only
chrome_options.add_argument('start-maximized') # 
chrome_options.add_argument('disable-infobars')
chrome_options.add_argument("--disable-extensions")
chrome_options.add_argument("--allow-running-insecure-content")

driver = webdriver.Chrome("C://Users//Administrator//Downloads//chromedriver83.exe",chrome_options=chrome_options)
driver.get('https://accounts.google.com/ServiceLogin/signinchooser?service=lbc&passive=1209600&continue=https%3A%2F%2Fbusiness.google.com%2F%3FskipPagesList%3D1%26gmbsrc%3Dbr-pt_BR-et-gs-z-gmb-l-z-h~my%257Credirect%257Cu%26skipLandingPage%3Dtrue%26hl%3Dpt-BR%26_ga%3D2.141175602.1643202833.1576602194-1983352456.1576602194&followup=https%3A%2F%2Fbusiness.google.com%2F%3FskipPagesList%3D1%26gmbsrc%3Dbr-pt_BR-et-gs-z-gmb-l-z-h~my%257Credirect%257Cu%26skipLandingPage%3Dtrue%26hl%3Dpt-BR%26_ga%3D2.141175602.1643202833.1576602194-1983352456.1576602194&hl=en&flowName=GlifWebSignIn&flowEntry=ServiceLogin')
 
yes, ffs. Do not use selenium! Its easy detectable. Switch to Puppeteer.
 
yes, ffs. Do not use selenium! Its easy detectable. Switch to Puppeteer.

The only annoying thing about puppeteer is there isn't official support for python, which is obviously what OP is using above.

What makes puppeteer more undetectable than selenium? I can't find anything online.
 
Google is not allowing automated logins anymore, and selenium have some readonly javascript variables that you can change. Maybe if you recompile selenium without all the footprints
 
I know for sure they blocked chromium-based browsers several month ago. Maybe Selenium is blocked as well.

What are you talking about?

Chrome is chromium based browser. Edge and Opera as well.

So as chromium is a widely used browser on Linux.
 
Back
Top