RSS Feeds
Propeller RSS feeds contain all the information you need to create your own custom view of Propeller.
Propeller offers many different RSS feeds, including the main page, the main channel pages, On Deck, tag RSS feeds, and the video feed.
Here is an example of an <item> section in a Propeller RSS feed:
<item> <title> <![CDATA[Wil Wheaton reviews the ST:TNG episode 'The Last Outpost']]> </title> <link> http://tv.propeller.com/story/2006/10/10/wil-wheaton-reviews-the-sttng-episode-the-last-outpost </link> <guid isPermaLink="true"> http://tv.propeller.com/story/2006/10/10/wil-wheaton-reviews-the-sttng-episode-the-last-outpost </guid> <comments> http://tv.propeller.com/story/2006/10/10/wil-wheaton-reviews-the-sttng-episode-the-last-outpost </comments> <description> <![CDATA[Wil's back on TV Squad, reviewing another episode of Star Trek: The Next Generation. Damn this is great stuff.<p>Channel: <a href='http://tv.propeller.com/'>Television</a> Tags: <a href=http://www.propeller.com/tag/wil+wheaton>wil wheaton</a> <a href=http://www.propeller.com/tag/star+trek>star trek</a> <a href=http://www.propeller.com/tag/tng>tng</a> <a href=http://www.propeller.com/tag/tv+squad>tv squad</a> </p>]]> </description> <category><![CDATA[wil wheaton]]></category> <category><![CDATA[star trek]]></category> <category><![CDATA[tng]]></category> <category><![CDATA[tv squad]]></category> <votecount>45</votecount> <commentcount>4</commentcount> <dc:creator>KeithMcDuffee</dc:creator> <pubDate>Tue, 10 Oct 2006 12:02:40 EDT</pubDate> </item>
Code Samples
JavaScript
Parsing XML in JavaScript is straightforward. Once you have the XML loaded as an XML document (perhaps by way of the XMLHttpRequest.responseXML attribute*), you can obtain a list of the items in the feed like so:
var items = xml.getElementsByTagName("item");
Then, parsing each item follows:
foreach (items as item){
var title = item.getElementsByTagName("title")[0].firstChild.nodeValue;
var description = item.getElementsByTagName("description")[0].firstChild.nodeValue;
var tagNodes = item.getElementsByTagName("category");
var tags = [];
foreach (tagNodes as node){
tags.push(node.firstChild.nodeValue);
}
}
And now, you have the story title, description, and a list of the story's tags. What you do with it is limited only by your creativity.
* Note that you cannot use this method within a webpage to obtain the RSS feed due to browser security rules. This method would work inside a Firefox extension.
Finished Products
Here is an example of a user-created Propeller scroller (in Flash) powered by a Propeller RSS feed:
Propeller Scroller
By lemieuxster
