Skip to content

Release 0.1.7

Compare
Choose a tag to compare
@miniflycn miniflycn released this 09 Nov 02:57
· 30 commits to master since this release
  • 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.