aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-04-18 21:59:22 +0200
committerJoris Guyonvarch2015-04-18 21:59:22 +0200
commit389d979eb3eaa18beb8a6da9f4a03bdb6acc1722 (patch)
tree9d475b868ad13162c0ecba42b2138058c2e2e68b /src/Main.hs
parent86f9991deeb44a6cc81044e61a9ad3ee001c5ced (diff)
downloadad-listener-389d979eb3eaa18beb8a6da9f4a03bdb6acc1722.tar.gz
ad-listener-389d979eb3eaa18beb8a6da9f4a03bdb6acc1722.tar.bz2
ad-listener-389d979eb3eaa18beb8a6da9f4a03bdb6acc1722.zip
Parsing utag_list from a detail page and showing the keys that are given in the configuration file
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Main.hs b/src/Main.hs
index f38646b..82135a2 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -19,3 +19,15 @@ main = do
listenToNewAds config
Nothing ->
T.putStrLn C.configUsage
+
+-- import Page
+-- import Parser.Detail
+
+-- main :: IO ()
+-- main = do
+-- eitherPage <- getPage "http://www.leboncoin.fr/locations/794858813.htm?ca=18_s"
+-- case eitherPage of
+-- Right page ->
+-- putStrLn (show $ parseDetail page)
+-- Left error ->
+-- T.putStrLn error