google-feed-api

interface for the Google Feed API

npm install google-feed-api
3 downloads in the last week
16 downloads in the last month

node-google-feed-api

This node module is a minimal implementation of the Google Feed API. Method names and usage are almost the same as the Google Feed API, although there has been added som additional methods to ease retrieval of items from feeds.

Usage

Create an instance:

var gfeed = require('google-feed-api');

Loading feeds

Construct a Feed-object from an URL:

var feed = new gfeed.Feed('http://politiken.dk/rss/senestenyt.rss');

Use one of the methods .load(callback), .includeHistoricalEntries(), .setNumEntries(num), .setResultFormat(format) documented at Google Feed API or use one of the following additional methods:

Listing items of a feed

feed.listItems(callback(items)); // returns an array of items

Finding feeds

Raw output:

gfeed.findFeeds('Politiken', callback(result)); // JSON object

List output:

gfeed.listFeeds('Politiken', callback(items)); // array
npm loves you