Ruby nokigiri

From wikinotes

nokigiri is an html parser

Documentation

website https://nokogiri.org/
require 'nokigiri'

html = '<html><title>foo</title></html>'
doc = Nokigiri::HTML.parse(html)
doc.css("title")  # css-select elements