Rubyã®HTMLã解æãããã¼ãµã¯ããããããã¾ãããä»å㯠hpricot ã使ã£ã¦ã¿ã¾ããã gemã§ã¤ã³ã¹ãã¼ã«ã§ããã®ã§ç°¡åã ãµã³ãã«ã require 'rubygems' require 'hpricot' doc = Hpricot(%{<a class=l href="hogehoge">bar</a>baz}) doc.search("a").map {|i| [ i['href'], i.inner_html ] } #=> [["hogehoge", "bar"], ["foo", "baz"]] HTMLãã¼ã¸ã®èªã¿è¾¼ã¿ doc = Hpricot("<p>A simple <b>test</b> string.</p>") open-uriã使ãã°ãããªé¢¨ã«URLå ã®HTMLãåå¾ã§ãã¾ãã require 'open-uri' doc = Hpricot(o
{{#tags}}- {{label}}
{{/tags}}