sitemap-0.1.2: Sitemap parser

Copyright(c) 2015 Alp Mestanogullari
LicenseBSD3
MaintainerAlp Mestanogullari <alpmestan@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Web.Sitemap

Contents

Description

Parse sitemaps and extract information with lenses.

Synopsis

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

data Entry Source

Constructors

Entry 

Instances

type URL = Text Source