Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (22 sloc) 0.594 kB
#!/usr/bin/env ruby
require 'open-uri'
require 'rss'
url = 'http://feeds.feedburner.com/quotationspage/mqotd'
open(url) do |rss|
feed = RSS::Parser.parse(rss,do_validate=false)
feed_size = feed.items.size
#puts "Title: #{feed.channel.title}"
x = 1
feed.items.each do |item|
#puts item if x < 4
if x < 2
author = item.title
#puts "author: "+ author
quote = item.description.match('(^".*)').to_s
#puts "quote: " + quote
geektool = quote + " --- " + author
puts geektool
end
x = x + 1
end
end
Jump to Line
Something went wrong with that request. Please try again.