Created
September 21, 2015 10:38
-
-
Save matsuhisa/b278924bf9edb6b17e84 to your computer and use it in GitHub Desktop.
sitecalyst の pagenameを取得する
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 webPage = require('webpage'); | |
var page = webPage.create(); | |
page.open('http://www.mwed.jp/hall/16238/', function(status) { | |
var pageName = page.evaluateJavaScript('function(){return s.pageName;}'); | |
console.log(pageName); | |
phantom.exit(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment