website-to-json
Version:
Converts all websites to JSON data
18 lines (16 loc) • 450 B
JavaScript
var wtj = require('./index')
wtj.extractData(process.env.DOMAIN, {
//links: true
headers: true,
debug: true,
social: ['ceneo.pl', 'trustedshops.de', 'thuiswinkel.org', 'opineo.pl', 'google.com/shopping', 'trustpilot.com'],
emails: false,
//type: 'phantomjs',
time: true,
forever: false
//http: true
})
.then(function(res) {
//console.log(JSON.stringify(res.social, null, 2));
console.log(JSON.stringify(res.meta, null, 2));
})