77Parse RSS data into a simple object structure. Currently supports;
88* RSS 2.0 specification
99* Atom 1.0 specification
10+ * Itunes elements for both RSS 2.0 and Atom 1.0 feeds
1011
1112## Installation
1213
@@ -32,50 +33,85 @@ return fetch('http://www.nasa.gov/rss/dyn/breaking_news.rss')
3233
3334``` js
3435{
35- type: undefined ,
36- title: undefined ,
36+ type: undefined , // either `rss-v2` or `atom-v1`
37+ title: undefined , // title of the channel
3738 links: [{
38- url: undefined ,
39- rel: undefined
39+ url: undefined , // url of the channel
40+ rel: undefined // type of url (eg. alternate)
4041 }],
41- description: undefined ,
42- language: undefined ,
43- copyright: undefined ,
42+ description: undefined , // description of the channel
43+ language: undefined , // language of the channel in `en-us`
44+ copyright: undefined , // copyright information about the channel
4445 authors: [{
45- name: undefined
46+ name: undefined // channel author names
4647 }],
47- lastUpdated: undefined ,
48- lastPublished: undefined ,
48+ lastUpdated: undefined , // last updated date for the channel
49+ lastPublished: undefined , // last published date for the channel
4950 categories: [{
50- name: undefined
51+ name: undefined // categories the channel belong too
5152 }],
5253 image: {
53- url: undefined ,
54- title: undefined ,
55- description: undefined ,
56- width: undefined ,
57- height: undefined
54+ url: undefined , // channel image url
55+ title: undefined , // channel image title
56+ description: undefined , // channel image description
57+ width: undefined , // channel image width (pixels)
58+ height: undefined // channel image height (pixels)
5859 },
59- items: [{
60- title: undefined ,
60+ itunes: { // itunes specific channel information
61+ author: [{
62+ name: undefined // channel author names
63+ }],
64+ block: undefined , // if `yes` then the entire podcast isn't shown in iTunes directory
65+ categories: [{
66+ name: undefined , // channel category names
67+ subCategories: [{
68+ name: undefined // sub category names
69+ }]
70+ }],
71+ image: undefined , // channel image url
72+ explicit: undefined , // `yes`/`no` to indicate if channel contains explicit content
73+ complete: undefined , // `yes` indicates the feed won't publish any new items in the future
74+ newFeedUrl: undefined , // a url pointing to the new feed location
75+ owner: {
76+ name: undefined , // owner name of the channel
77+ email: undefined , // owner email address of the channel
78+ },
79+ subtitle: undefined , // sub title of the channel
80+ summary: undefined , // summary of the channel
81+ },
82+ items: [{ // list of items in the feed
83+ title: undefined , // item title
6184 links: [{
62- url: undefined ,
63- rel: undefined
85+ url: undefined , // item link url
86+ rel: undefined // type of item link
6487 }],
65- description: undefined ,
66- content: undefined ,
88+ description: undefined , // item description
89+ content: undefined , // item HTML content
6790 categories: [{
68- name: undefined
91+ name: undefined // categories the item belongs too
6992 }],
7093 authors: [{
71- name: undefined
94+ name: undefined // item author names
7295 }],
73- published: undefined ,
96+ published: undefined , // item published date
7497 enclosures: [{
75- url: undefined ,
76- length: undefined ,
77- mimeType: undefined
78- }]
98+ url: undefined , // item media url
99+ length: undefined , // item media length (bytes)
100+ mimeType: undefined // item media mime type (eg audio/mpeg)
101+ }],
102+ itunes: { // itunes specific item information
103+ authors: [{
104+ name: undefined , // item author names
105+ }],
106+ block: undefined , // `yes` indicates the item won't be displayed in the iTunes directory
107+ duration: undefined , // HH:MM:SS length of the item
108+ explicit: undefined , // `yes`/`no` to indicate if item contains explicit content
109+ image: undefined , // image url for the item
110+ isClosedCaptioned: undefined , // `yes` indicates if the item contains closed captioning
111+ order: undefined , // item order number
112+ subtitle: undefined , // item subtitle
113+ summary: undefined , // item summary
114+ }
79115 }]
80116}
81117```
0 commit comments