Posted By

chrisaiv on 10/15/07


Tagged

rss ruby delicious


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

mehlam2
skammer
sergeizen
webstic
techdetours


Ruby: 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.