Home

Awesome

Fotogopher

A small toy project that provides an API for taking screenshots of web sites, similar to urlbox

Written in go, it demonstrates the simplicity and expressiveness of the language for writing concurrent applications.

Installation

  1. Install go
  2. Install timeout from GNU coreutils. Probably it is already installed in your system
  3. Install phantom.js and put the binary in your PATH
  4. go run fotogopher.go --help for a view of the runtime options
  5. go run fotogopher.go to start the server. It must run from its directory so that it can find capture.js
  6. go to http://localhost:8080 to read the documentation of the API

Tested with go1.4 and phantomjs 1.9.8 on ubuntu LTS 12.04