Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/beaugunderson/news-text

📰 get news text from Google News, CNN, etc.
https://github.com/beaugunderson/news-text

javascript node

Last synced: 26 days ago
JSON representation

📰 get news text from Google News, CNN, etc.

Awesome Lists containing this project

README

        

## news-text

Retrieve the article text from several news sites using either the
[article](https://www.npmjs.org/package/article) module or
[Diffbot](http://www.diffbot.com/) (if a Diffbot key is specified).

```js
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);
});
});
```