Archive

Archive for September 9th, 2011

Transforming CSS selector to an XPath query

September 9th, 2011 Serabe No comments

So. Easy.

RUBY:
  1. require 'nokogiri'; Nokogiri::CSS.xpath_for(css_selector)

article clipper Transforming CSS selector to an XPath query
 
share save 171 16 Transforming CSS selector to an XPath query
Categories: Programming, Ruby Tags: , ,
Improve the web with Nofollow Reciprocity.