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
- Install go
- Install timeout from GNU coreutils. Probably it is already installed in your system
- Install phantom.js and put the binary in your PATH
go run fotogopher.go --help
for a view of the runtime optionsgo run fotogopher.go
to start the server. It must run from its directory so that it can findcapture.js
- 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