Skip to content

Instantly share code, notes, and snippets.

@trptcolin
Created March 7, 2009 16:24
Show Gist options
  • Save trptcolin/75377 to your computer and use it in GitHub Desktop.
Save trptcolin/75377 to your computer and use it in GitHub Desktop.
count the signatures on the Software Craftsmanship Manifesto
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