Functional HTML scraping and rewriting with CSS in OCaml
Lambda Soup is a functional HTML scraping and manipulation library for OCaml designed for ease of use. It provides elementary traversals for navigating HTML nodes and familiar functional combinators like filter, map, and fold, along with support for CSS selectors. The library is built on Markup.ml, which gives it the ability to resolve entity references, detect character encodings automatically, and convert everything to UTF-8, and it can also be used for XML parsing. The project was originally created by Anton Bachin to answer a Stack Overflow question in November 2015.