Method to parse HTML document in Ruby?

后端 未结 4 2051
抹茶落季
抹茶落季 2020-11-29 09:03

like DOMDocument class in PHP, is there any class in RUBY (i.e the core RUBY), to parse and get node elements value from a HTML Document.

4条回答
  •  孤街浪徒
    2020-11-29 09:52

    You can also try Oga by Yorick Peterse.

    It is an XML/HTML parser written in Ruby that does not require system libraries such as libxml. You can find it here. https://github.com/YorickPeterse/oga

提交回复
热议问题