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

2019-11-05  本文已影响0人  liuvz

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
)

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

上一篇 下一篇

猜你喜欢

热点阅读