CutyCapt is a CLI utility to capture Webkit renderings of a webpage and the resulting image can be stored in a plethora of formats.

To install, first install the dependencies

We installed Xvfb because we don’t want  to run a full fledged desktop everytime for a screenshot. Onto installing CutyCapt itself. Issue the following:

Below is an example command of how to get a screenshot of a webpage:

If you get warnings like the following,

You need to install the following driver:

This should fix it, you’re good to go.