lib/LoomioScraper/script.js in LoomioScraper-0.1.0 vs lib/LoomioScraper/script.js in LoomioScraper-0.1.1

- old
+ new

@@ -2,12 +2,15 @@ var fs = require('fs'); var system = require('system'); var link = system.args[1]; -var file = system.args[2] || "index.html"; +var file = system.args[2]; -page.open(link); +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();