link attr is empty in your feed.

1 view
Skip to first unread message

Gleb Tulukin

unread,
Feb 10, 2010, 4:24:36 PM2/10/10
to crisis-camp-rss-aggregator
Looks like you do not populate the 'link' attribute. See the code and
entire RSS item below. Title and description are fine. Without links a
RSS feed does not make much sense, we cannot link back to the original
story. I work on HaitianVoices.org and we planned to use your feed.

>> NEWS_URL = "http://news.crisiscommons.org/rss/all/rss.xml"
=> "http://news.crisiscommons.org/rss/all/rss.xml"
>> t = RSS::Parser.parse(open(NEWS_URL).read).items.first
=> #<RSS::Rss::Channel::Item:0x101f75808 @dc_publisher=[],
@content_encoded=nil, @link="", @parent=nil, @dc_contributor=[],
@category=[], @converter=nil, @dc_creator=[], @itunes_explicit=nil,
@dc_source=[], @dc_format=[], @dc_type=[], @pubDate=Wed Feb 10
13:14:00 -0500 2010, @dc_language=[], @enclosure=nil,
@title="www.southcom.mil: Military civil affairs team meets with local
leadership in Cap Haitien", @dc_rights=[], @itunes_block=nil,
@comments=nil, @dc_description=[], @dc_coverage=[],
@trackback_ping=nil, @itunes_summary=nil, @itunes_author=nil,
@dc_subject=[], @itunes_name=nil, @itunes_subtitle=nil,
@guid=#<RSS::Rss::Channel::Item::Guid:0x101f704e8
@content="http://www.southcom.mil/AppsSC/news.php?storyId=2167",
@parent=nil, @converter=nil, @isPermaLink=nil, @do_validate=true>,
@author=nil, @trackback_about=[], @dc_date=[], @dc_relation=[],
@itunes_duration=nil, @itunes_keywords=nil, @description="By Tech.
Sgt. Victoria Meyer, JFSOCC Public Affairs\n \nCAP HAITIEN,
Haiti\302\227A civil affairs team from the Joint Forces Special
Operations Component Com...\n\n\t Date/Time created: Feb 10 2010
10:14AM", @do_validate=true, @dc_identifier=[], @dc_title=[],
@itunes_email=nil, @source=nil>
>> t.title
=> "www.southcom.mil: Military civil affairs team meets with local
leadership in Cap Haitien"
>> t.link
=> ""

Chris Penn

unread,
Feb 13, 2010, 10:51:16 AM2/13/10
to crisis-camp-r...@googlegroups.com
Glen,

Can you elaborate on this issue a little more? How are you producing
this error?

Chris Penn...

--
"As we open our newspapers or watch our television screens, we seem to
be continually assaulted by the fruits of Mankind's stupidity."
-Roger Penrose

barn...@comcast.net

unread,
Feb 13, 2010, 12:14:03 PM2/13/10
to crisis-camp-r...@googlegroups.com

Cris or Heather,

 

Please send me the dial-in info for the 1:00 PM RSS conference call.

 

Thanks,

David Barnett, CCCHI

barn...@comcast.net

708-848-5742

 

 

 

 

Heather Leson

unread,
Feb 13, 2010, 12:16:13 PM2/13/10
to crisis-camp-r...@googlegroups.com
Hi the call is now , not 1pm.

H


Conference Bridge Access Info

Current Bridge being used for status calls (Rondee) Pin 227772


Heather Leson
Communications Lead
OpenSRS/Tucows Inc.
heathe...@gmail.com
21nig...@gmai.com

Gleb Tulukin

unread,
Feb 18, 2010, 11:42:49 PM2/18/10
to crisis-camp-r...@googlegroups.com
Yes, the very simple Ruby file to reproduce the error attached. It has a simple method to read an RSS feed and two calls of that method two compare results. The output looks like

For Techmeme
Thu, 18 Feb 2010 22:30:01 -0500 ... CBS: We'll Cut iTunes Prices for Some Shows [UPDATE] (Peter Kafka/MediaMemo) ... http://www.techmeme.com/100218/p70#a100218p70
Thu, 18 Feb 2010 22:00:16 -0500 ... Exclusive: TheStreet.com's Tech Exclusives Are a Crapshoot (Harry McCracken/Technologizer) ... http://www.techmeme.com/100218/p77#a100218p77

Thu, 18 Feb 2010 22:47:02 -0500 ... www.unfpa.org: Rapid Assessment Provides New Information on Relief and Recovery Needs in Haiti - 04 February 2010 ... 
Thu, 18 Feb 2010 22:47:02 -0500 ... www.unfpa.org: Assisting Pregnant Women in Haiti as Risk to Babies Rises - 04 February 2010 ... 
Thu, 18 Feb 2010 22:47:02 -0500 ... www.unfpa.org: Report Documents Challenges to Maternal Health in Haiti Even Before the Earthquake - 03 February 2010 ... 

No links populated, and hence the RSS is useless.  

If you are not familiar with Ruby and on Mac OS X, simply download the file and type 'ruby ruby_rss_reader.rb' in a terminal window. On Windows, you have to download and install Ruby separately..

I am sure Python or Perl developers can easily port this script and recreate the problem too. 

Thanks





ruby_rss_reader.rb
Reply all
Reply to author
Forward
0 new messages