Pyppeteer fix for BrowserError: Browser closed unexpectedly

if you are having an error related with Pyppeteer

 

BrowserError: Browser closed unexpectedly is just the error you get when Chrome crashes for whatever reason. It would be nice if pyppeteer printed out the error, but it doesn't.

To track things down, it's helpful to pull up the exact command that pyppeteer runs. You can do that this way:

from pyppeteer.launcher import Launcher
 ' '.join(Launcher().cmd)
run output from command line and find missing libraries and install it.

Comments

Popular posts from this blog

overlay filesystem and containers

How to add pagination to django comments for your model