Posted by admin June 28th 2018 at 17:06

var phantom = require('phantom');

phantom.create().then(function(ph) {
ph.createPage().then(function(page) {
page.open('http://setlog.net/').then(function(status) {
page.property('content').then(async function(content) {
//console.log(content);
var _content = content;
var ua = await page.evaluate(function(){
//return document.getElementsByTagName('body')[0].innerHTML;
return document.getElementById('contact').innerHTML;
})
await console.log(ua);
//await page.close();
await ph.exit();
});
});
});
});