gpt4 book ai didi

pyppeteer.errors.BrowserError : Browser closed unexpectedly

转载 作者:行者123 更新时间:2023-12-04 00:02:46 33 4
gpt4 key购买 nike

今天,我学习了名为 pyppeteer 的库,当我运行我的代码时

import asyncio
from pyppeteer import launch


async def main():
browser = await launch(options={'devtools': True, 'headless': False})
page = await browser.newPage()
await page.goto('http://example.com')
await page.screenshot({'path': 'baidu.png'})
await browser.close()


asyncio.get_event_loop().run_until_complete(main())

我有:
pyppeteer.errors.BrowserError: Browser closed unexpectedly:

最佳答案

关于pyppeteer.errors.BrowserError : Browser closed unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57217924/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com