Home > Programming, Ruby > Transforming CSS selector to an XPath query

Transforming CSS selector to an XPath query

September 9th, 2011 Serabe Leave a comment Go to 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

Related posts:

  1. Sweating blood
  2. RMagick: Dibujar con patrones
  3. Gráficos de radar o de araña con Gruff
  4. Writing your own JRuby extension. Part I: BasicLibraryService.
  5. Writing your own JRuby extension. Part II: Creating your first class.
Categories: Programming, Ruby Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Improve the web with Nofollow Reciprocity.