Skip to content

Instantly share code, notes, and snippets.

View vahan-hartooni's full-sized avatar

vahan-hartooni

View GitHub Profile
// This phantomJS script takes these arguments:
// [url] [pageWidth] [pageHeight] [output filename]
// System module so we can access the arguments
var system = require('system'),
// Initialize webpage
page = require('webpage').create(),
// Set our arguments