Capturing Web Pages

Options for automating the capture of a screen shot of a web page.

Paparazzi!
Paparazzi! is an OS X application for capturing screenshots of web pages. It is AppleScriptable to automate the capture of a page:

tell application "Paparazzi!"
  capture "http://www.google.com/"
  repeat while busy
    delay 1
  end repeat
  save in POSIX file "/Users/foo/Desktop/google.png" as PNG with icon
end tell

webkit2png
For a command-line only tool, consider webkit2png. It does require that you have PyObjC installed (OS X 10.5 has it already).
To install PyObjC on Mac OS X 10.3:

mkdir ~/Desktop/pyobjc
cd ~/Desktop/pyobjc
svn export http://svn.red-bean.com/pyobjc/branches/pyobjc-1.4-branch
cd pyobc-1.4-branch
python setup.py bdist_mpkg --open

Download and install webkit2png (got a compilation error on OS X 10.3.9 that I haven't figured out):

wget http://www.paulhammond.org/2009/03/webkit2png-0.5/webkit2png-0.5.txt
sudo mv webkit2png-0.5.txt /usr/local/bin/webkit2png
sudo chmod ugo+x /usr/local/bin/webkit2png

To use it:

webkit2png http://www.google.com/

Technology:

Recent Updates

  • 2 years 2 days ago
  • 2 years 2 days ago
  • 2 years 5 days ago
    php 8.x
  • 2 years 6 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff