Skip to content

Instantly share code, notes, and snippets.

@matrushka
Last active September 3, 2015 08:18
Show Gist options
  • Save matrushka/b5dddd477f5f0e5ac206 to your computer and use it in GitHub Desktop.
Save matrushka/b5dddd477f5f0e5ac206 to your computer and use it in GitHub Desktop.
require 'rss'
require 'open-uri'
titles = []
open('http://safran-beta.herokuapp.com/feed.rss') { |rss| titles = RSS::Parser.parse(rss).items.collect(&:title) }
`say Safranda bugün`
titles.each{|title| `say "#{title.gsub(/"/,'').squeeze(' ')}"`; sleep 0.5}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment