You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
The current front-page example is a nice but impractical finger-exercise. It would be nice to have something more realistic. Here's a kind of example that might be fun, which you could get if you linked in the lambdasoup package:
#letget_hrefssoup=Soup.select "a" soup
|>Soup.to_list
|>List.map (Soup.R.attribute "href")
;;
valget_hrefs : 'aSoup.node -> stringlist=<fun>#get_hrefs (Soup.parse {|<html><body><a href="https://ocaml.org">This is a link!</a>And here's <a href="https://github.com/ocaml">another one</a>. |});;
- : stringlist= ["http://ocaml.org"; https://github.com/ocaml"]
I think something like that could be a lot more compelling.