Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hay/node-rsslib

RSS parser for node
https://github.com/hay/node-rsslib

Last synced: 28 days ago
JSON representation

RSS parser for node

Awesome Lists containing this project

README

        

# RSSLib - RSS Library Parser using NodeJS

This module parse content of RSS Feed and it can also obtain the html content.

## How to Install RSSLib

npm install rsslib

## How to Use RSSLib

There are two functions such as `getListRSS` and `getRSSContent`.

getListRSS(url, callback)

getRSSContent(url, content_key, removeContext, callback)

## Example

```javascript
var lib = require('rsslib');

// Retrieve list of RSS
// the return result will in array which contain: title, link, description, pubDate, guid, author

var url = 'http://rss.cnn.com/rss/edition_us.rss';

lib.getListRSS(url, function(result){
for(i=0;i