Package0.2.1TextWeb
taggy
Efficient and simple HTML/XML parsing library
- Version0.2.1
- CategoryText, Web
- LicenceBSD-3-Clause
- AuthorAlp Mestanogullari, Vikram Verma
- Maintaineralpmestan@gmail.com
- Homepagegithub.com/alpmestan/taggy
- Pinned byhackage taggy 0.2.1
- Sourcehackage.haskell.org/package/taggy-0.2.1
Modules
6 modules- Text.Taggy0taggy is a simple package for parsing HTML (and should work with XML)
- Text.Taggy.DOM9This module will help you represent
- Text.Taggy.Entities1
- Text.Taggy.Parser9Parse an HTML or XML document as a list of Tags
- Text.Taggy.Renderer4Render a DOM tree (from Text.Taggy.DOM)
- Text.Taggy.Types19Core types of taggy.
Description
taggy is a simple package for parsing HTML (and should work with XML) written on top of the attoparsec library, which makes it one of the most efficient (space and time consumption wise) on hackage.
This is the root module of taggy. It reexports everything from the package. See each module's docs for details about the functions and types involved in taggy.
While we've been testing the parser on many pages, it may still be a bit rough around the edges. Let us know on github if you have any problem.
If you like to look at your HTML through various optical instruments, feel free to take a look at the companion taggy-lens package we've put up together. It makes HTML parsing a piece of cake.
If you want to parse a document as list of tags and go through it as some kind of stream by just picking what you need, head to Text.Taggy.Parser and take a look at Text.Taggy.Parser.taggyWith and Text.Taggy.Parser.run.
If you want to parse the document as a DOM tree and traverse it to find the information you need, use Text.Taggy.DOM.parseDOM. This is especially useful when used in conjunction with taggy-lens.
If you build some HTML manually or just transform some existing DOM tree and want to turn it into a Data.Text.Lazy.Text head to Text.Taggy.Renderer and look at Text.Taggy.Renderer.render.
Depends on
7 packages- attoparsec-0.14.4in this set
- base-4.23.0.0with GHC
- blaze-html-0.9.2.0in this set
- blaze-markup-0.8.3.0in this set
- text-2.1.4with GHC
- unordered-containers-0.2.21in this set
- vector-0.13.2.0in this set
Used by in this set · 0
Nothing in this set depends on it.