在flask中调用pyppeteer需要添加的选项

https://stackoverflow.com/questions/53679905/running-pypupeteer-in-flask-gives-valueerror-signal-only-works-in-main-thread

You need to call launch with disabled signals handling,

browser = await launch(
handleSIGINT=False,
handleSIGTERM=False,
handleSIGHUP=False
)

不知道为什么, 反正能用了.......

你可能感兴趣的:(在flask中调用pyppeteer需要添加的选项)