Created
November 4, 2014 01:13
-
-
Save pparadis/a614cb178db0a436a911 to your computer and use it in GitHub Desktop.
PhantomJS Titre
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.open(url, function(status) { | |
var title = page.evaluate(function() { | |
return document.title; | |
}); | |
console.log('Page title is ' + title); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment