bogdanrada
2/20/2012 - 11:28 PM

shotty.js

shotty.js

//create new webpage object
var page = new WebPage();

//load the page
page.open('http://espn.go.com/nfl', function (status) {
		//fire callback to take screenshot after load complete
		page.render('espn.png');
		//finish
		phantom.exit();   	  
	});