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

chrisaiv on 10/15/07


Tagged

rss ruby delicious


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

mehlam2
skammer


Parse Delicious RSS Feeds


Published in: Ruby 


Saw someone parse an RSS feed, I decided I wanted to do something similar from my Delicious account.

  1. require 'rss'
  2. require 'open-uri'
  3.  
  4. open('http://del.icio.us/rss/chrisaiv') do |http|
  5. response = http.read
  6. result = RSS::Parser.parse(response, false)
  7. items = result.items
  8.  
  9. items.each do |item|
  10. puts "Title:" + item.title + "\n" + item.link + " \n" + item.description + "\n"
  11. end
  12.  
  13. end

Report this snippet 

You need to login to post a comment.