import asyncio
from pyppeteer import launch
async def main():
	browser=await launch()
	page=await browser.newPage()
	await page.goto('http://baidu.com')
	await page.screenshot({'path':'example.png'})
	await browser.close()

asyncio.get_event_loop().run_until_complete(main())
print('运行完成')
