Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created October 2, 2008 18:21
Show Gist options
  • Save practicingruby/14416 to your computer and use it in GitHub Desktop.
Save practicingruby/14416 to your computer and use it in GitHub Desktop.
require "open-uri"
loop do
puts( open("http://finance.google.com/finance?cid=983582").read.
match(/<span class="chr" id="ref_983582_c">(-?\d+\.\d+)/m)[1] )
sleep(10)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment