Created
January 2, 2012 07:13
-
-
Save AndrewVos/1549681 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.upto(3) do | inner_count | | |
if @doc.css("table")[y+5].css("tr")[inner_count].css("td")[1].inner_text then | |
person = {} | |
[:title, :name, :phone, :email].each_with_index do |index, element| | |
node = @doc.css("table")[y+5].css("tr")[inner_count].css("td")[index] | |
if node | |
person[element] = node.inner_text | |
end | |
end | |
puts format_output(person, agency_name) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment