Using Google Reader and RSS.cfc to aggregate feeds
I'm not sure how others aggregate blog/news feeds etc but I've found an easy (and somewhat simple) way to aggregate feeds using Google reader and Ray Camdens rss.cfc.
All you do is create an account with Google reader and then start adding the feeds you want to aggregate. Add your tags to the feeds i.e. cfEclipse, FuseBox etc and make your feed public. The public feed that you create here will be what we need to grab the data in Ray rss.cfc.
Once you're happy with all your feeds in Google create a page called feeds.cfm - make sure that rss.cfc is in the same folder as this page [or invoke the cfc some other way (recommended)].
Then use this code in feeds.cfm
<cfhttp method="get" url="#myRssFeed#" />
<cfset rssObj = createObject("component", "rss");
<cfset request.feed = rssObj.getEntries(cfhttp.FileContent) />
<h1>My Feed</h1>
<cfoutput query="request.feed">
<h2><a href="#request.feed.link#" title="#request.feed.title#">#request.feed.title#</a></h2>
<cfif len(request.feed.description)>
<p>#request.feed.description#</p>
<cfelse>
<p>No description available</p>
</cfif>
</cfoutput>
One thing you will have to do is update line 537 in rss.cfc to this:
<cfset result.type = "Atom">
<cfset result.version = arguments.xmlData.feed.xmlAttributes.version>
<cfelseif structKeyExists(arguments.xmlData.feed.xmlAttributes,"xmlns:gr")>
<cfset result.type = "Atom">
<cfset result.version = 2.0>
</cfif>
Cool huh?
Check out the feed page on cfFrameworks.com to see it in action.





That is one reason I like an RSS Reader vs an aggregator. An aggregator doesn't remember anything about what is new since my last visit.
archiving data,
search facilities,
remember users viewed posts as you point out.
I do intend to do this so please watch this space.
one question: using this code just drops my text into one big block, no line breaks etc as appear in the original blog where it was created. any way to get line breaks in there? have been looking into delimters but nothing has provided any results as of yet...