html-article-extractor

1.0.14 • Public • Published

html-article-extractor

A web page content extractor for News websites

installation

npm install html-article-extractor

usage

var htmlArticleExtractor = require("html-article-extractor");
 
var dom = new JSDOM("...");
var body = dom.window.document.body
result = htmlArticleExtractor(body);
console.log(result)

Outputs:

{
    html: '<div>contents</div>',
    text: 'contents'
}

example

git clone https://github.com/jungyoun/html-article-extractor
cd html-article-extractor
npm install
node example/crawler.js

demo

https://online-article-extractor.herokuapp.com/

Package Sidebar

Install

npm i html-article-extractor

Weekly Downloads

97

Version

1.0.14

License

MIT

Unpacked Size

15.2 kB

Total Files

6

Last publish

Collaborators

  • jungyoun