UNPKG

docparse-scraper-nst

Version:

Node Zombie based scraper to scrape bills from the NStar (supplier code "NST)" website

17 lines (16 loc) 520 B
var inspect = require('eyespect').inspector(); var fs = require('fs'); module.exports = function(data, cb) { // var output = { // username: data.currentLogin.username, // currentLoginIndex: data.currentLoginIndex, // numLogins: data.numLogins // } inspect({username: data.currentLogin.username}, 'logging out now'); var html = data.bro.html('body') console.log(html); fs.writeFileSync('/users/noah/Desktop/test.html', html, 'utf8'); data.bro.clickLink('Log Out', function() { cb(); }); }