pyppeteer 入坑

import asyncio
from pyppeteer import launch

async def main():
browser = await launch({'headless': False, 'autoClose':False})
page = await browser.newPage()
await page.goto('http://sbnew.betcoapps.com/#/sport/?containerID=bcsportsbookcontainer&lang=zhh&menuType=2&type=0&sport=1')
# await page.screenshot({'path': 'example.png'}) 截屏
# await browser.close()

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

你可能感兴趣的:(pyppeteer 入坑)