谷歌浏览器的安全性与硒和Python
我正在编写一个小脚本,它允许我使用 python/selenium 和 chrome driver 自动登录我的谷歌帐户,但我有一个安全问题。这是我的屏幕截图。你有解决办法吗?我应该使用什么流程? (javascript 已激活,我有一个很好的 chrome 版本)
I am coding a small script that would allow me to automatically log in to my google account with python/selenium and chrome driver , but I have a security problem. here are my screenshots. Do you have a solution ? what process should I use? (javascript is actived, i have a good version of chrome)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此 Google 支持页面指出,由于以下安全原因,通过浏览器登录“使用自动化测试框架”被禁用,并且 Google 建议使用基于浏览器的 OAuth 2.0 身份验证服务“使用 Google 登录”。
由于某些网站(例如 stackoverflow.com)允许您使用“使用 Google 登录”登录其服务,因此必须通过 Google OAuth 2.0 身份验证进行。这意味着您也间接登录了您的 Google 帐户,因此您可以使用所有 Google 服务。
This Google Support page states that sign in via browsers that "Use automation testing frameworks" is being disabled for the following security reasons and Google advices to do "Sign in with Google" using browser-based OAuth 2.0 authentication service.
As some websites, like stackoverflow.com allow you to sign in to their services using "Sign in with Google" it must happen via Google OAuth 2.0 authentication. This implicates that doing so you are also indirectly signing in to your Google account and therefore you can use all the Google services.