GitXplorerGitXplorer
p

unbrowser

public
5 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
4cf961b7379b8f2780f92a3b55f7a64a6c9e57e3

Remove print statements

committed 12 years ago
Unverified
71fecf7349043343b572183d28d4e5820679e23c

Leave casper action rendering to the client posting

committed 12 years ago
Unverified
1d1d8dbfd6704cb7ac428661c4caba800c379b55

rasterize.js is no longer necessary

committed 12 years ago
Unverified
19163db4731fa611cfb444f7e8c3261b9ee129f2

Use CasperJS for easier interaction with the browser, and start exposing a bit of API control

committed 12 years ago
Unverified
8a5f4e39f8700da629b3448d24759a96adc1e19a

Share the project folder

committed 12 years ago
Unverified
a4ca3d53e8346db6c4afc535464c51248b5ffc77

Merge pull request #1 from asmedrano/master

ppeterlandry committed 12 years ago

README

The README file for this repository.

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