Skip to content

Instantly share code, notes, and snippets.

@L42y
Last active December 16, 2015 06:19
Show Gist options
  • Select an option

  • Save L42y/5390719 to your computer and use it in GitHub Desktop.

Select an option

Save L42y/5390719 to your computer and use it in GitHub Desktop.
var page = require('webpage').create();
var fs = require("fs");
page.onLoadStarted = function() {
console.log('Now loading a new page...');
};
page.onLoadFinished = function () {
var file = fs.open('hepai.html', 'w');
file.write(page.content);
file.close();
phantom.exit();
};
page.open('http://hepaimusic.com/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment