Results 2 comments of 符瑞阳

我尝试过 (1) 在后端做一个 session_id: playwright 的映射, 但是由于 playwright 的内部机制,导致全局只能实例化一次(https://crifan.github.io/web_automation_tool_playwright/website/issues_summary/sync_inside_asyncio.html) (2) 用 selenium 代替 playwright 的作用 (3) 每请求一次就重启一次 flask 目前我紧急使用的是第三种办法。想请教下第(2) 种办法是否可替换。

可以的,太感谢了!