We Recommend

Beginning Ruby: From Novice to Professional Beginning Ruby: From Novice to Professional
Beginning Ruby is a thoroughly contemporary guide for every type of reader wanting to learn Ruby, from novice programmers to web developers to Ruby newcomers. It starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a genuine Ruby application.


Posted By

indianocean on 05/18/07


Tagged

rss textmate frazr


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

tmarkiewicz
Netzach


Reading rss feed


Published in: Ruby 


  1. require 'rss'
  2. require 'open-uri'
  3.  
  4. open('http://www.frazr.de/rss/?action=user&user=calibanatspace') do |http|
  5. response = http.read
  6. result = RSS::Parser.parse(response, false)
  7. item = result.items[0]
  8. p item.title
  9. end

Report this snippet 

You need to login to post a comment.