簡體   English   中英

如何在沒有驅動器 API 的情況下使用 selenium 和 python 登錄谷歌驅動器

[英]How can I login to google drive using selenium & python WITHOUT Drive API

所以我試圖通過web解析登錄google驅動,似乎不允許腳本直接登錄驅動。 不使用 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&ltmpl=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()

更安全的帳戶不允許,但不太安全的帳戶只需要在登錄后進行一些授權

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM