python-webkit2png snippets

How to generate screenshots on Debian Linux with python-webkit2png

Tagged python, python-webkit2png, webkit2png  Languages bash


apt-get install python-qt4 libqt4-webkit
git clone git://
cd python-webkit2png/
python install



You might get this error: cannot connect to X server


# install xvbf
apt-get install xvfb xbase-clients xfonts-base libgtk2.0-0
# start
Xvfb :99 -ac

See details here

Take a screenshot:

./ -o obama.png -x 1024 768 ""

On OSX I would recommend you use Paparazzi