#!/usr/bin/env ruby $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'css_selector' html = STDIN.read selector = ARGV[0] puts CssSelector(html, selector)