| Copyright | (c) 2015 Alp Mestanogullari |
|---|---|
| License | BSD3 |
| Maintainer | Alp Mestanogullari <alpmestan@gmail.com> |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Sitemap
Description
Parse sitemaps and extract information with lenses.
Usage
Simply feed parseSitemap with a sitemap as
some lazy Text (that you can fetch from
a distant web server or locally) and then
extract all the information you want using the
lenses.
parseSitemap sitemapfilecontent ^.. traverse.loc
would hand you back all the URLs the sitemap points to.
Parsing
parseSitemap :: Text -> [Entry] Source
Turn a sitemap into a list of Entrys.
A sitemap Entry, with lenses
Constructors
| Entry | |