What do you think is the most fleshed out HTML parsing shard?

Trying to rebuild an app I made with Rails into Crystal and I need to parse some HTML.

Looking for some insight from people in the trenches.

2 Likes

After wrestling for two hours with Crystagiri, I have thrown in the towel.

myhtml has my vote. However, I did have to dive into the sourcecode to figure out how to use it. The documentation is a little lacking.

What about require "xml"; XML.parse_html(...)? It’s in the standard library. It’s just a wrapper around libxml2.

I just prefer css selectors over xpath selectors. (More readable also to me since I’m a frontend guy too)

1 Like