Skip to content

Instantly share code, notes, and snippets.

@mroth
Created January 5, 2010 03:36
Show Gist options
  • Save mroth/269127 to your computer and use it in GitHub Desktop.
Save mroth/269127 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'nokogiri'
require 'open-uri'
url = "http://www.ssa.gov/OACT/babynames/decades/names2000s.html"
doc = Nokogiri::HTML(open(url))
doc.css("td td:nth-child(2)").each do |name|
puts name.content
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment