python - 如何在没有驱动器 API 的情况下使用 selenium 和 python 登录谷歌驱动器
问题描述
所以我试图通过网络解析登录谷歌驱动,它似乎不允许脚本直接登录驱动。有没有办法在不使用 Drive API的情况下克服这个问题。这样做的可能方法是什么?有什么方法可以从 chrome 中隐藏我正在使用脚本的事实吗?
from webbot import Browser
web = Browser()
#Go to google drive's Login
web.go_to('https://accounts.google.com/signin/v2/identifier?service=wise&passive=true&continue=http%3A%2F%2Fdrive.google.com%2F%3Futm_source%3Dar&utm_medium=button&utm_campaign=web&utm_content=gotodrive&usp=gtd<mpl=drive&hl=en&flowName=GlifWebSignIn&flowEntry=ServiceLogin')
web.click(id='identifierId')
web.type('EMAILID')
web.click('Next', tag='span')
web.click(id='password')
web.type('PASSWRD')
web.click('Next', tag='span')
exit()
解决方案
更安全的帐户不允许,但不太安全的帐户只需要在登录后进行一些授权
推荐阅读
- python - 有没有办法从机器人框架中获取当前的 imaplibrary 实例并传递给单独的 python 函数?
- security - 如何在没有密码的情况下从 p12 文件中提取字段(国家、州、...电子邮件)
- javascript - 如何找到本机光标的中心并将自定义光标与其对齐?
- python-3.x - Faulty bubble sort using recursion on slices; list does not end up sorted
- javascript - How to search for value in text which is starting and ending with the same symbol but the numbers between are different every time? NodeJS
- javascript - can't add currency format to the total input in a sum of inputs
- python-3.x - 为什么我可以刮一张表,但不能刮一张嵌套表?
- python - 如何在不杀死未完成的芹菜任务的情况下重新启动heroku应用程序
- pdf - 如何在 Android/iOS 中处理 GeoPDF
- php - PHP邮件程序内联取消订阅而不在浏览器中打开网址