Take screenshots of webpages via the command line

Sep 26, 2010 - Leave a Comment

webpage screenshot 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.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Manish Patel in Command Line, Mac OS X

Leave a Reply


Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates