Using 16 lines of Ruby + Twilio to watch Techcrunch for any mention of 42Floors

We're hoping for a writeup on Techcrunch about 42floors to go live today.  It's not live yet. We're getting antsy.

So I wrote a little script to have Twilio call me when the post goes live.  Here it is.

require 'net/http'
require 'rubygems'
require 'twilio-ruby'

def call_me
@client = Twilio::REST::Client.new('account_sidxxxxx', 'auth_tokenxxxxxxxxxxx')
@client.account.calls.create({:from => '+16179999999', :to => '+ 16179999999', :application_sid => 'xxxxxxxxxxxxxxxxxxx'})
end

while 1 > 0 do
url = "http://techcrunch.com"
result = Net::HTTP.get_response(URI.parse(url))
if result.body=~ /42Floors/
call_me
break
end
sleep 20
end