Use PhantomJS to extract html and text
问题 I try to extract all the text content of a page (because it doesn't work with Simpledomparser) I try to modify this simple example from the manual var page = require('webpage').create(); console.log('The default user agent is ' + page.settings.userAgent); page.settings.userAgent = 'SpecialAgent'; page.open('http://www.httpuseragent.org', function (status) { if (status !== 'success') { console.log('Unable to access network'); } else { var ua = page.evaluate(function () { return document