小编Val*_*pov的帖子

python-webdriver和asyncio

是否可以首先为每个任务打开浏览器,然后再打开链接?此代码引发错误

import asyncio
from selenium import webdriver

async def get_html(url):
    driver = await webdriver.Chrome()
    response = await driver.get(url)
Run Code Online (Sandbox Code Playgroud)

TypeError:对象WebDriver不能在“ await”表达式中使用

python selenium asynchronous webdriver python-asyncio

2
推荐指数
2
解决办法
3987
查看次数