python - 如何在“数据”处无延迟地访问网页;在 Python 中使用 Selenium Chromedriver 的页面?
问题描述
我在 Python 中使用 Selenium 和 Chrome 网络驱动程序,当我运行脚本时,它会正常打开 chrome,但它在“数据”中等待;页面大约 10 秒,而不是正常进入页面。我可以跳过等待时间并立即转到页面吗?有我的代码:
class Instance():
driver=None
url=None
def __init__(self, url):
self.url=url
def runInstance(self):
self.driver = webdriver.Chrome(executable_path = "C:\chromedriver.exe")
self.driver.get(self.url)
instance = Instance("https://www.youtube.com/")
instance.runInstance()
解决方案
推荐阅读
- javascript - (XPages/Javascript)点击按钮导出excel
- python-3.x - python的最佳copula包
- python - 尝试通过 Python 复制 Excel 数据透视函数
- javascript - 任何替代解决方案?
- google-cloud-firestore - 从跨平台 xamarin 项目连接 Cloud Firestore 数据库
- android - 使用 React 原生导航实现 android 原生侧边栏
- python - 无法使用 Python 请求/urllib 模块读取印地语/天城文
- .net - 时区更改后授权码立即过期
- python-3.x - `vispy.visuals.GraphVisual` 没有可用的示例。我的代码只显示空白屏幕
- javascript - onsubmit 事件处理程序 javascript 不起作用