Sha256: 6722b03db799dab0de41739765bb5f96882eae36406fb06ab09dd11322aa6e3b

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

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


var link = system.args[1];
var file = system.args[2];

console.log("file: " + file);
console.log("url: " + link);

page.open(link);	

page.onLoadFinished = function() {
  console.log("page load finished");
  fs.write(file, page.content, 'w');
  phantom.exit();
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
LoomioScraper-0.1.1 lib/LoomioScraper/script.js