是否可以首先为每个任务打开浏览器,然后再打开链接?此代码引发错误
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”表达式中使用