npm

Need private packages and team management tools?Check out npm Orgs. »

news-text

3.0.0 • Public • Published

news-text

Retrieve the article text from several news sites using either the article module or Diffbot (if a Diffbot key is specified).

var simple =  new require('news-text').Simple();
 
simple.reutersUsNews(function (err, articles) {
  articles.forEach(function (article) {
    console.log(article);
  });
});

Google News is searchable:

var googleNews = new require('news-text').GoogleNews();

googleNews.searchArticles('taylor swift', function (err, articles) {
  articles.forEach(function (article) {
    console.log(article);
  });
});

install

npm i news-text

Downloadsweekly downloads

56

version

3.0.0

license

BSD-2-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability