Alex Ellis 32ac150832 Add sample scraping/automation example via Phantomjs
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-07-03 19:06:52 +01:00

11 lines
232 B
JavaScript

var webPage = require('webpage');
var page = webPage.create();
page.open('https://www.cnn.com/', function(status) {
console.log('Status: ' + status);
console.log(page.title);
// Do other things here...
phantom.exit();
});