var page = require('webpage').create();
var args = require('system').args;

if (args.length !== 2) {
  phantom.exit();
}

page.settings.userAgent = 'PlatformIO Escaped Fragment Crawler / PhantomJS';
page.open(args[1], function() {
  console.log(page.content);
  phantom.exit();
});

/**
 * Copyright (C) Ivan Kravets <me@ikravets.com>
 * See LICENSE for details.
 */

var page = require('webpage').create();
var args = require('system').args;

if (args.length !== 2) {
  phantom.exit();
}

page.settings.userAgent = 'PlatformIO Escaped Fragment Crawler / PhantomJS';
page.open(args[1], function() {
  console.log(page.content);
  phantom.exit();
});

Add copy