Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 888 Bytes

README.rst

File metadata and controls

42 lines (27 loc) · 888 Bytes

Corona

Corona is essentially a basic webpage screenshot utility that uses headless Chromium via pyppeteer.

Running

# Download a version of Chromium to use
corona setup

# Take a snapshot
corona snap https://google.com google.png

Troubleshooting

Depending on your execution environment, you might need to disable the Chrome sandbox. To do so, add the --disable-sandbox argument; however, please be aware of the risks in doing this.

Extension

The application allows for a couple of extension points via a python script that follows this format:

async def pre_snapshot(page):
    # Do something awesome just before the
    # snapshot here

async def post_snapshot(page):
    # Do something even more awesome after
    # the snapshot has been taken