#!/usr/bin/env rubyrequire 'open-uri'url = "http://www.google.com/search?q=ruby"open(url) { |page| page_content = page.read() links = page_content.scan(/ links.each {|link| puts link}}