2.1.0 • Published 6 years ago

nhkeasy v2.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

NHK News Easy Article Scraper

A module to scrape NHK Web Easy articles.

I hope I didn't miss an rss feed

npm install nhkeasy
var nhkeasy = require('nhkeasy');
var request = require('request');
var url; //some nhk easy article
var nhkws = nhkeasy();

//stream
request(url).pipe(nhkws);
nhkws.on('title', function(title) {
  console.log(title); 
});

nhkws.on('paragraph', function(p) {
  console.log(p);
});

nhkws.on('finish', function() {
  console.log('done');
})

//or just put it in memory
request(url, function(err, res, body) {
  nhkeasy({separator: '\n'}, body, function(err, d) {
    console.log(d.title, d.article);
  });
});
2.1.0

6 years ago

2.0.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago