Take screenshots of webpages via the command line
You already know that you can take screenshots from the command line, but now using a simple tool called webkit2png you can quickly take a screenshot of any webpage from the command line too. You’ll need to have Safari and Python installed on your Mac, then you just download the app and do the following from the command line:
python /path/to/webkit2png http://osxdaily.com
The screenshots of the webpage then appear in your current working directory.
You can download webkit2png at the developers home.