lambdasoup

AuthorAnton Bachin <antonbachin@yahoo.com>
LicenseBSD
Homepagehttps://github.com/aantron/lambda-soup
Issue Trackerhttps://github.com/aantron/lambda-soup/issues
MaintainerAnton Bachin <antonbachin@yahoo.com>
Dependencies
&jbuilder>= 1.0+beta10
markup>= 0.7.1
ounit
PublishedJun 2, 2018
Source [http] https://github.com/aantron/lambda-soup/archive/0.6.3.tar.gz
a610e0d26ddafe48fd631f71878db5ec
StatisticsInstalled 111 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/lambdasoup/lambdasoup.0.6.3/opam

Easy functional HTML scraping and manipulation with CSS selectors

Lambda Soup is an HTML scraping library inspired by Python's Beautiful Soup. It provides lazy traversals from HTML nodes to their parents, children, siblings, etc., and to nodes matching CSS selectors. The traversals can be manipulated using standard functional combinators such as fold, filter, and map.

The DOM tree is mutable. You can use Lambda Soup for automatic HTML rewriting in scripts. Lambda Soup rewrites its own ocamldoc page this way.

A major goal of Lambda Soup is to be easy to use, including in interactive sessions, and to have a minimal learning curve. It is a very simple library.