No description, website, or topics provided.
Ruby Python Puppet
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
manifests
modules
unbrowser_server
.gitignore
README.md
Vagrantfile
requirements.txt
setup.py

README.md

Unbrowser

Unbrowser is a small REST API that provides browser-based rendering of web pages. Initially, only a Webkit back-end is supported. Webkit support is provided by PhantomJS.

Installation

The easiest way to get up and running is to use Vagrant. A Vagrantfile based on Ubuntu 10.04 is provided, as is a Puppet manifest.

Use

The only action provided at the moment is /webkit/rasterize/. This action requires a POST. The response will be a redirect to the rendered output. Example:

http://localhost:5000/webkit/rasterize/?url=http://www.google.com/

Required parameters

  • url

Optional Parameters

  • width

    default: 800

  • height

    default: 600

  • format

    default: png

  • render_delay (ms)

    default 10000