Originally taken from the blog post by Roland Tapken at: http://www.blogs.uni-osnabrueck.de/rotapken/2008/12/03/create-screenshots-of-a-web-page-using-python-and-qtwebkit/
--- On ubuntu you need to add following packages: apt-get install python-qt4 libqt4-webkit
--- And then install it with: pip install webkit2png