Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/beaugunderson/news-text
- Owner: beaugunderson
- Created: 2014-10-13T19:54:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T18:21:03.000Z (almost 2 years ago)
- Last Synced: 2024-09-20T08:15:23.444Z (about 2 months ago)
- Topics: javascript, node
- Language: JavaScript
- Homepage:
- Size: 232 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
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);
});
});
```