# fme-rss

> This is an NPM module that uses the FME gSheets object interface to have a ghseet setup to rip through a list of RSS sites and produce a databse of article for processing

Latest version **1.1.2** (published 2017-11-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install fme-rss
pnpm add fme-rss
yarn add fme-rss
bun add fme-rss
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2017-11-17 |
| First published | 2017-11-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | Marlin Cobb |
| Maintainers | marlincobb |
| Keywords | RSS, FME, FotunesRocks, aggreator |

## Links

- npm: https://www.npmjs.com/package/fme-rss
- npm.io page: https://npm.io/package/fme-rss

## Dependencies (8)

- [moment](https://npm.io/package/moment.md) ^2.19.2
- [mongod](https://npm.io/package/mongod.md) ^2.0.0
- [mongodb](https://npm.io/package/mongodb.md) ^2.2.33
- [request](https://npm.io/package/request.md) ^2.83.0
- [fme-logger](https://npm.io/package/fme-logger.md) ^1.1.0
- [@types/feedparser](https://npm.io/package/@types/feedparser.md) ^2.2.1
- [feedparser-promised](https://npm.io/package/feedparser-promised.md) ^1.4.2
- [google-sheets-object](https://npm.io/package/google-sheets-object.md) ^1.0.13

## Recent versions

- 1.1.2 (latest) — 2017-11-17
- 1.1.1 — 2017-11-17
- 1.1.0 — 2017-11-16
- 1.0.3 — 2017-11-14
- 1.0.2 — 2017-11-14
- 1.0.1 — 2017-11-14
- 1.0.0 — 2017-11-14

## README

## Synopsis

Used by FortunesRocks.me LLC for news monitoring

## Code Example

```
mongo.MongoClient.connect(mongoURL, async (err, db) => {
    if (err) {
        L.error("MongoDB not running?  Requires it");
        throw err;
    }
    L.info("database connected:",mongoURL);
    var rss = new FmeRss(db,gsheetConfig);
    L.info("Have my rss object, step 1 is to set a stream function");
    rss.stream = stream;
    L.info("now init the Rss feeds");
    await rss.init();
    L.info("the number of feeds processes is",await rss.feedsDb.count())
    L.info("the number of posts in the posts db is", await rss.fmePostsDb.count());
    L.info("our post history count is",rss.postsHistory.length);
    L.info("set the update rates to faster values for testing and debuggin");
    rss.setFeedsDbPollInterval(1);
    rss.setRssPollInterval(1);
    L.info("set logging level to debug");
    rss.setLogLevel("debug");
  
})

var stream = (posts:FmePost[]) => {
    for (var i in posts) {
        L.info("New post",posts[i].title,posts[i].pubdate);
    }
}


```
## Format of gsheetConfig for the FeedsDb to read and find the feeds;
    if you don't know how to get this, read the google-edit-sheets NPM
 {
     "oauthEmail" : "BIG LONG KEY@developer.gserviceaccount.com",
     "oauthKeyFile" : "Path to GDOCS Pem file",
     "sheetId" : "unique key if for page",
     "debugLevel" : "info"
 } 

## Motivation

To aggreate RSS feeds based on topics for various websites; 

## Installation
```
npm install --save fme-rss
```

## API Reference
```
See Code example above.

```

## Tests

There is a test-fme-rss included in the package to test the function. 

## Contributors

FortunesRocks.me LLC contact me there if you have questions;
npms + " a rolled in a blanket"+fortunesrocks.me
## License

ISC

---
_Source: https://npm.io/package/fme-rss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
