Python 谷歌一直在迅速关闭,但无法找出原因,
无论何时启动,它都会打开chrome选项卡一秒钟,然后立即关闭。我试过下载不同版本的chrome驱动程序,但没有任何效果。Python 谷歌一直在迅速关闭,但无法找出原因,,python,selenium,google-meet,Python,Selenium,Google Meet,无论何时启动,它都会打开chrome选项卡一秒钟,然后立即关闭。我试过下载不同版本的chrome驱动程序,但没有任何效果。 非常感谢您的帮助。尝试将input()放在最后一行作为测试。您的程序可能即将结束。您在login中调用.get,之后将不会出现任何代码,因此程序将终止(并可能带上浏览器)。@Carcigenicate成功了,谢谢! from selenium.webdriver.chrome.options import Options from selenium.webdriver.co
非常感谢您的帮助。尝试将
input()
放在最后一行作为测试。您的程序可能即将结束。您在login
中调用.get
,之后将不会出现任何代码,因此程序将终止(并可能带上浏览器)。@Carcigenicate成功了,谢谢!
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import datetime
import time
import os
import keyword
class meet_bot:
def __init__(self):
self.bot = webdriver.Chrome("chromedriver.exe")
def login(self,email,pas):
bot=self.bot
bot.get("https://accounts.google.com/ServiceLogin/identifier?ltmpl=meet&continue=https%3A%2F%2Fmeet.google.com%3Fhs%3D193&&o_ref=https%3A%2F%2Fwww.google.com%2F&_ga=2.26776703.37544310.1621196502-1890362195.1621196502&flowName=GlifWebSignIn&flowEntry=ServiceLogin")
obj = meet_bot()
obj.login("abc","etc")