I want to extract all the text in a specific webpage.
In JavaScript the code looks like this:
var webPage = require('webpage');
var page = webPage.create();
page.open('http://phantomjs.org', function (status) {
console.log('Stripped down page text:\n' + page.plainText);
phantom.exit();
});
How can I run page.plainText in Python?
Thanks.