Skip to content

Instantly share code, notes, and snippets.

@davidcraig davidcraig/script.js
Last active Mar 31, 2017

What would you like to do?
PhantomJS - Take a screenshot of a webpage as seen in the browser.
var website = '';
var filename = './google.jpg';
var page = require('webpage').create();
page.viewportSize = {
width: 1024,
height: 592
};, function(status) {
console.log("Status: " + status);
if (status === "success") {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.