module Parser.SeLogerParser ( parse ) where import Data.Maybe (catMaybes) import Data.Text (Text) import qualified Data.Text as T import Text.HTML.TagSoup import Model.Ad (Ad (Ad)) import Parser.Utils parse :: Text -> [Ad] parse page = catMaybes . fmap parseAd $ partitions (~== (T.unpack "