House of Fusion
Home of the ColdFusion Community
Hostmysite Dedicated Hosting

Search cf-talk

May 09, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
         1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31


For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

Question about cfeed

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Steve Sequenzia
03/27/2008 11:41 PM

I am experimenting with building a very simple feed reader but I am hiving issues with cffeed not reading all the contents of the feed on certain sites. I have this very basic reader setup that reads the feeds and then does a dump on the page. Here it is http://dev.thinksys.com/feeds/1.cfm Most feeds that you put in there are fine but the contents field on certain sites are getting truncated. For instance TechCrunch.com. This is the feed URL http://feeds.feedburner.com/Techcrunch. You will notice that the contents is truncated but if you look directly at the feed it is not truncated. Anyone have any idea why? Also, I am wondering if it is possible to read some feeds ever so often and insert the results in a DB. I want this process to work even without anything happening on the site. Anyone have any idea how to do that? Thanks for any help in advance.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
03/28/2008 02:52 PM

Eh? When I viewed http://feeds.feedburner.com/Techcrunch directly, I saw this for the first entry: Update: More details of the scheme are here. Musicians themselves may just be crazy, but the music labels are dangerously stupid, and need to be stopped before they can do any further damage to the music industry. Case in point: Warner Music, fully aware that the days of charging for recorded music are coming to an [...] Notice the [...]. This is exactly what I saw in your app as well. "Also, I am wondering if it is possible to read some feeds ever so often and insert the results in a DB. I" Check out cfschedule and Scheduled Tasks. Also don't forget that the entire code base to ColdFusionBloggers.org is available for download. You can use that for help. I also have code that works around a lot of CFFEEDs.... "issues". On Thu, Mar 27, 2008 at 11:40 PM, Steve Sequenzia <cf@thinksys.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Steve Sequenzia
03/29/2008 01:59 AM

Hey Ray, Thanks for the response. Yeah it is strange if you look at the feed directly in FF it shows it truncated but in IE it shows all the full articles. Also, other readers like Goolge Reader show the full article not the truncated version. Any ideas why this would be different? I will checkout ColdFusionBloggers.org and look at the code. Thanks! ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
03/29/2008 04:21 AM

Firefox is using its own XSLT to show you the feed - it's displaying the description, not the content. IE is showing the feed with the XSLT that comes with the feed, which shows the content. On Sat, Mar 29, 2008 at 3:58 PM, Steve Sequenzia <cf@thinksys.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Steve Sequenzia
03/29/2008 03:14 PM

@James Thanks for the info, that makes sense. Do you know if there is any way to use cffeed or anything else in CF to read the description then or do I need to manually? Thanks Again. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Steve Sequenzia
03/29/2008 03:42 PM

@James Actually when I look at the dump of the cffeed the content is the truncated version. So I guess I am confused because IE shows the entire article but when I use cffeed it only shows the truncated version. Any ideas? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
03/29/2008 08:21 PM

That's the correct CFFEED behaviour, according to the docs (http://www.cfquickdocs.com/cf8/?getDoc=cffeed): Column, Atom entry, RSS item CONTENT, content element value, description item value So, for an RSS feed, the "content" column should contain the description item, which it does. You'll have to parse the XML to get the content item. On Sun, Mar 30, 2008 at 4:41 AM, Steve Sequenzia <cf@thinksys.com> wrote: > @James > >  Actually when I look at the dump of the cffeed the content is the truncated version. So I guess I am confused because IE shows the entire article but when I use cffeed it only shows the truncated version. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists
Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition