forked from filipg/twilight-library
WIP
This commit is contained in:
parent
eba9beb68e
commit
07b43649a9
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user