Skip to content

jboysen/node-google-feed-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published