google-feed-api

0.0.2 • Public • Published

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

/google-feed-api/

    Package Sidebar

    Install

    npm i google-feed-api

    Weekly Downloads

    3

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • jboysen