module Basic where import Prelude import Cheerio (Cheerio, find, length) import Cheerio.Static (loadRoot) import Effect (Effect) import Effect.Console (log) htmlEx :: String htmlEx = """ """ root :: Cheerio root = loadRoot htmlEx main :: Effect Unit main = let fruitCount = root # find "#fruits" # find "li" # length in log $ "Number of fruits: " <> show fruitCount