Website screenshot capturer written in Go and designed to run without an X session (thanks to Xvfb).
- Python
- ImageMagick
- webkit2png
- Xvfb
Send a POST request with a url
field to the server. Any other request returns 400 Bad Request
.
curl --data "url=https://html.house/xpeoccu2.html" http://localhost:3333
Tested on Ubuntu 14.04 with Python 2.7 / pip 1.5.4.
TL;DR sudo apt-get install xvfb imagemagick python-qt4 libqt4-webkit && pip install git+https://github.com/adamn/python-webkit2png.git && go get github.com/writeas/siteshot
- Get ImageMagick:
sudo apt-get install imagemagick
- Get Xvfb:
sudo apt-get install xvfb
- Get webkit2png dependencies:
sudo apt-get install python-qt4 libqt4-webkit
- Get webkit2png:
pip install git+https://github.com/adamn/python-webkit2png.git
(from a GitHub comment) - Get siteshot:
go get github.com/writeas/siteshot