let url = process.argv[2]
var Nightmare = require('nightmare');
var nightmare = Nightmare({show: false,webPreferences: {}})
nightmare
.goto(url)
.viewport(1600, 900)
.wait(5000)
.evaluate(function() {
return document.documentElement.innerHTML;
})
.end()
.then(res => {console.log(res)});