[英]How can I avoid a timeout error while using a chrome selenium webdriver
I have created multiple python scripts using selenium that will generate a web page that contains a data.table that is almost 100,000 rows and 25 columns.我使用 selenium 创建了多个 python 脚本,这些脚本将生成一个 web 页面,其中包含一个 data.table,几乎有 100,000 行和 25 列。 One example of this code can be found here .
可以在此处找到此代码的一个示例。 Afterwards, I intend to scrape that table with beautiful soup.
之后,我打算用美汤刮那一桌。 However I time and again get this error message.
但是我一次又一次收到此错误消息。
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: -0.001
(Session info: chrome=81.0.4044.113)
Is there a reason why this message keeps popping up?是否有此消息不断弹出的原因? Is there a way to fix the code so that my webpage can keep downloading and allow me to scrape it?
有没有办法修复代码,以便我的网页可以继续下载并允许我抓取它?
Any assistance is truly appreciated.非常感谢任何帮助。
So I have the following code to transition from one webpage to another, but I still get the same exact timeout error.所以我有以下代码从一个网页转换到另一个网页,但我仍然得到相同的超时错误。
driver.switch_to.window(driver.window_handles[1])
WebDriverWait(driver, 60).until(EC.visibility_of_element_located((By.XPATH, '/html/body/p[2]/text()[2]')))
df_url = driver.current_url
what am I missing out of this that will make it no longer timeout?我错过了什么让它不再超时?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.