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
PublishedFeb 5, 2018
Source [http] https://github.com/aantron/lambda-soup/archive/0.6.2.tar.gz
315b85dc9a1c388e7fc2af35f409ff95
StatisticsInstalled 104 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/lambdasoup/lambdasoup.0.6.2/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.