Capturing Web Pages

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

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 ""
  repeat while busy
    delay 1
  end repeat
  save in POSIX file "/Users/foo/Desktop/google.png" as PNG with icon
end tell

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
cd pyobc-1.4-branch
python bdist_mpkg --open

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

sudo mv webkit2png-0.5.txt /usr/local/bin/webkit2png
sudo chmod ugo+x /usr/local/bin/webkit2png

To use it:



Recent Updates

  • 1 year 1 month ago
  • 1 year 1 month ago
  • 1 year 1 month ago
    php 8.x
  • 1 year 1 month ago
  • 1 year 1 month ago
    Drop Centos 5/6 stuff