Add sample scraping/automation example via Phantomjs

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-07-03 16:12:51 +00:00
parent 12c12b1a47
commit 32ac150832
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,10 @@
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();
});