Skip to content

Instantly share code, notes, and snippets.

@larrywright
Created April 30, 2009 20:36
Show Gist options
  • Save larrywright/104676 to your computer and use it in GitHub Desktop.
Save larrywright/104676 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'mofo'
require 'pp'
File.open('results.txt', 'w+') do |file|
list = hCard.find 'http://maps.google.com/maps?f=q&source=s_q&view=text&hl=en&gl=us&q=daycare+Ottawa+IL&mrt=all&ie=UTF8&attrid=&sa=N&start=0'
list.each do |item|
begin
file.write("#{item.fn}, #{item.adr[1].street_address}, #{item.adr[1].locality}, #{item.adr[1].region}, #{item.tel}, 61350\n")
rescue
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment