@hackage fast-tagsoup1.0.14
Fast parsing and extracting information from (possibly malformed) HTML/XML documents
Installation
Dependencies (6)
- base >=4 && <5
- bytestring
- containers
- tagsoup >=0.13.10
- text
- text-icu Show all…
Dependents (3)
@hackage/acme-everything, @hackage/rospkg, @hackage/hsforce
Fast TagSoup parser. Speeds of 20-200MB/sec were observed.
Works only with strict bytestrings.
This library is intended to be used in conjunction with the original tagsoup package:
import Text.HTML.TagSoup hiding (parseTags, renderTags) import Text.HTML.TagSoup.Fast
Besides speed fast-tagsoup correctly handles HTML <script> and <style> tags, converts tags to lower case and can decode non UTF-8 XML for you.
This parser is used in production in BazQux Reader feeds and comments crawler.