Skip to content

Instantly share code, notes, and snippets.

@vitallium
Created March 4, 2013 15:30
Show Gist options
  • Save vitallium/5083032 to your computer and use it in GitHub Desktop.
Save vitallium/5083032 to your computer and use it in GitHub Desktop.
A minimal example for PhantomJS
var page = require('webpage').create();
page.open('http://google.com', function () {
page.render('google.png');
phantom.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment