podparser
v1.0.5
Published
feedparser not use stream
Downloads
2
Readme
feedparser
This module depends on https://github.com/danmactough/node-feedparser No need to care about stream, Just use xml feed content
Install
npm install podparser
Usage
var request = require('request');
var parser = require('podparser');
request('http://www.u148.net/rss/', function(error, resp, body) {
return parser(body, function(error, ret) {
console.log(error);
return console.log(ret);
});
});
API
List of meta properties
- title
- description
- link (website link)
- xmlurl (the canonical link to the feed, as specified by the feed)
- date (most recent update)
- pubdate (original published date)
- author
- language
- image (an Object containing
url
andtitle
properties) - favicon (a link to the favicon -- only provided by Atom feeds)
- copyright
- generator
- categories (an Array of Strings)
List of article properties
- title
- description (frequently, the full article content)
- summary (frequently, an excerpt of the article content)
- link
- origlink (when FeedBurner or Pheedo puts a special tracking url in the
link
property,origlink
contains the original link) - permalink (when an RSS feed has a
guid
field and theisPermalink
attribute is not set tofalse
,permalink
contains the value ofguid
) - date (most recent update)
- pubdate (original published date)
- author
- guid (a unique identifier for the article)
- comments (a link to the article's comments section)
- image (an Object containing
url
andtitle
properties) - categories (an Array of Strings)
- source (an Object containing
url
andtitle
properties pointing to the original source for an article; see the RSS Spec for an explanation of this element) - enclosures (an Array of Objects, each representing a podcast or other enclosure and having a
url
property and possiblytype
andlength
properties) - meta (an Object containing all the feed meta properties; especially handy when using the EventEmitter interface to listen to
article
emissions)