Enide Studio

Headless Webkits

31 August 2013

by Paul Verest

NOTE: This is open-source article, that you can extend.

Node.js is not the only software that uses Google Chrome V8 engine.

PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

http://phantomjs.org/

	console.log('Loading a web page');
	var page = require('webpage').create();
	var url = 'http://www.phantomjs.org/';
	page.open(url, function (status) {
	    //Page is loaded!
	    phantom.exit();
	});
comments powered by Disqus