The problem is that I need capture web-site screenshots without running X server.
So theoretically it's possible to create a virtual frame buffer and to use it to capture screenshot.
Is there any similar solutions, any advice would be appreciated?
Sultan
you can use a combination of Selenium WebDriver and pyvirtualdisplay (which uses xvfb) to run your browser in a virtual display and capture screenshots.
so, the setup you need is:
On Debian/Ubuntu Linux systems, you can setup everything with:
$ sudo apt-get install python-pip xvfb
$ sudo pip install selenium
once you have it setup, the following code example should work:
this will: