scrapbook

Please see the README on Github at https://github.com/matsubara0507/scrapbook#readme


Keywords
mit, program, unclassified, web, Propose Tags , matsuara0507/scrapbook-example, haskell, haskell-application
License
MIT
Install
cabal install scrapbook

Documentation

scrapbook

This is cli that collect posts of site that is wrote in config yaml using feed or scraping.

Usage (WIP)

>> import Control.Lens ((^.))
>> import Data.Maybe
>> conf <- fromJust <$> readConfig "example/sites.yaml"
>> [site] = fromJust $ mapM toSite (conf ^. #sites)
>> (Right posts) <- collect $ fetch site
>> collect $ writeFeed (fromJust $ conf ^. #feed) posts
Right ()