我有一些代码试图连接到以下网页的html内容-https://www.whoscored.com/Matches/1294545/LiveStatistics/Germany-Bundesliga-2018-2019-Bayern-Munich-Hoffenheim-这给我一个超时错误,我不确定该怎么办
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
options.add_argument('--ignore-ssl-errors')
browser = webdriver.Chrome(options=options)
browser.get('https://www.whoscored.com/Matches/1294545/LiveStatistics/Germany-Bundesliga-2018-2019-Bayern-Munich-Hoffenheim')
WebDriverWait(browser, 30).until(
EC.element_to_be_clickable((By.ID, "#live-player-home-offensive"))
)
这是错误消息:
line 13, in <module>
EC.element_to_be_clickable((By.ID, "#live-player-home-offensive"))
File "C:\Users\Luv\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: