Skip to content

Instantly share code, notes, and snippets.

@delagoya
Created July 8, 2010 16:44
Show Gist options
  • Save delagoya/468289 to your computer and use it in GitHub Desktop.
Save delagoya/468289 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'hpricot'
result = Hpricot.parse(open(ARGV[0]))
STDERR.puts "ERROR: #{ARGV[0]}" unless result.root.name == "html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment