var request = require('request');
var Reader = require('html-readability');
var url = 'http://nodejs.org/'
request(url, function(err, res, body) {
...
var reader = new Reader({
content: body
})
var readPage = reader.run();
console.log(readPage);
/*
outputs
{
title: 'The title of the page'
html: '<html><p>The pretty version of the page</p></html>',
text: 'The text version of the page'
}
*/
...
});
forked from yangsibai/node-html-readability
-
Notifications
You must be signed in to change notification settings - Fork 0
grobot/node-html-readability
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
node readability
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%