What is the Ruby equivalent of python BeautifulSoup library?

I am looking for an forgiving HTML parser to clean up HTML and retrieve data in Ruby. I have had success using BeautifulSoup for this - what is the ruby โ€‹โ€‹equivalent?

+4
source share
2 answers

Nokogiri

See also: Nokogiri vs Hpricot before making a choice. Nokogiri seems to have outperformed hpricot (not tested itself) and has good IMO syntax.

+6
source

There was a Rubyful Soup that was the Ruby port for BeautifulSoup, but it is no longer supported, and their site now recommends hpricot .

0
source

All Articles