This commit is contained in:
nlitkowski 2021-04-07 03:03:14 +02:00
parent eba9beb68e
commit 07b43649a9

View File

@ -16,7 +16,7 @@ import Debug.Trace
getLinkAndText xpathCondition = proc doc -> do
xpathTrees <- getXPathTrees xpathCondition -< doc
href <- (getXPathTrees "//a" >>> getAttrValue "href") -< xpathTrees
txt <- (listA (deep isText >>> getText) >>> arr (intercalate " ")) -< xpathTrees
txt <- (deep isText >>> getText) -< xpathTrees
returnA -< traceShowId (href, txt)