Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F# html parsing

What other options currently exist for parsing html in F#? Currently have some regular expressions but would prefer something like Pythons Beautiful Soup http://www.crummy.com/software/BeautifulSoup/ or be able to using an api similar to jQuery from F#.

I have seen the fslex and fparsec but I'm not sure if someone else has already built some html parsing library with these or I would have to write my own.

like image 874
yanta Avatar asked Nov 04 '10 09:11

yanta


2 Answers

I have not tried using this (from F# or otherwise) but the Html Agility Pack seems to be the preferred solution for .NET.

What is the best way to parse html in C#?

like image 85
Brian Avatar answered Nov 07 '22 01:11

Brian


Today there is an F# Data library that has an Html Parser and ability of Html CSS Selectors (same as jQuery selectors). Also library has Html Type Provider.

like image 41
andrew Avatar answered Nov 07 '22 01:11

andrew