pyppeteer报错: 159 [SEVERE] The communication with Chromium are disconnected after 20 seconds.

发表时间:2020-02-22

pyppeteer报错: 159 [SEVERE] The communication with Chromium are disconnected after 20 seconds.

解决办法:

修改pyppeteer配置文件connection.py

Snipaste_2020-02-22_13-28-17.png

代码:

        self.connection: CDPSession
        self._connected = False
        self._ws = websockets.client.connect(
            self._url, max_size=None, loop=self._loop)
            self._url, max_size=None, loop=self._loop, ping_interval=None, ping_timeout=None)
        self._recv_fut = self._loop.create_task(self._recv_loop())
        self._closeCallback: Optional[Callable[[], None]] = None


文章来源互联网,尊重作者原创,如有侵权,请联系管理员删除。邮箱:417803890@qq.com / QQ:417803890


Python Free

邮箱:417803890@qq.com
QQ:417803890

皖ICP备19001818号
© 2019 copyright www.pythonf.cn - All rights reserved

微信扫一扫关注公众号:

联系方式

Python Free