Created
March 7, 2009 16:24
-
-
Save trptcolin/75377 to your computer and use it in GitHub Desktop.
count the signatures on the Software Craftsmanship Manifesto
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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
# the solution is only this simple since the last row doesn't get padded to fill out the table | |
doc = Nokogiri::XML(open('http://manifesto.softwarecraftsmanship.org')) | |
puts doc.css("#signatory_table td").length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment