Release 0.1.7
- You can set javascriptEnabled now:
// Global Settings
var urlExtract = require('url-extract')({
javascriptEnabled: true
});
// For one time
urlExtract.snapshot('http://www.baidu.com', {
javascriptEnabled: true,
callback: function (job) {
console.log(job);
}
})
Defines whether to execute the script in the page or not (defaults to false), so if it's true, PhantomJS will take a snapshot after all scripts.