hScraper-0.1.0.0: A Haskell library to scrape and crawl web-pages

Safe HaskellNone
LanguageHaskell2010

HScraper.Main

Description

Module for various convenience functions and error-free wrappers of parsers so that they can be used for batches of urls.

Synopsis

Documentation

getFromFile :: FilePath -> IO HTMLTree Source

Tries to parse html from file. returns NullTree if parsing fails.

getParsedHTML :: Text -> HTMLTree Source

like parseHtml but returns NullTree if parsing fails.

getParsedQuery :: String -> Query Source

Takes a String and tries to parse as Query returns empty query if parsing fails.

parseSite :: String -> IO HTMLTree Source

takes url and returns parsed HTMLTree.