Website screenshot capturer written in Go.
Clone or download
thebaer Add 404 image
This requires a server configured to serve up this image when a file
isn't found (sold separately).
Latest commit 7190e56 Jan 2, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
404.png
LICENSE
README.md
thumbnail.go

README.md

siteshot

MIT license

Website screenshot capturer written in Go and designed to run without an X session (thanks to Xvfb).

Dependencies

Usage

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

Installation

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

  1. Get ImageMagick: sudo apt-get install imagemagick
  2. Get Xvfb: sudo apt-get install xvfb
  3. Get webkit2png dependencies: sudo apt-get install python-qt4 libqt4-webkit
  4. Get webkit2png: pip install git+https://github.com/adamn/python-webkit2png.git (from a GitHub comment)
  5. Get siteshot: go get github.com/writeas/siteshot