Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
require 'open-uri'
require 'hpricot'
doc = open("http://rinexus.com/blog/2009/01/rhode-island-twitter-sound") { |f| Hpricot(f) }
twits = []
(doc/'.content/p').each do |p|
p.inner_html.each do |line|