Skip to content

grobot/node-html-readability

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  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'
       }
    */
    ...
  });

About

node readability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%