Data.Crawler · SnowWalkerJ/UseLess Wiki · GitHub
Skip to content

Data.Crawler

Chen Bingxuan edited this page Aug 19, 2016 · 1 revision

A crawler is a wrapped structure consisting of a start-point for the task, a front-end handler and a back-end handler. The start point is first fed to the front-end handler, which produces the results and generates to tasks to the queue. The back-end handler consumes the results passed by the front-end handler and saves them permanently.

Data.Crawler data

data Crawler a b = Crawler{
    entryPoint::a,
    webHandler::OCTableT a IO b,
    dataHandler::b->IO ()
}

Data.Crawler functions

runCrawler::Crawler a b->IO ()

See also:

Data.OCTable

Clone this wiki locally