forked from filipg/twilight-library
Merge branch 'dev' of https://git.wmi.amu.edu.pl/s440054/twilight-library into dev
This commit is contained in:
commit
1b7e1281f9
@ -17,7 +17,7 @@ getLinkAndText xpathCondition = proc doc -> do
|
|||||||
name <- getElemName -< xpathTrees
|
name <- getElemName -< xpathTrees
|
||||||
txt <- (listA (deep isText >>> getText) >>> arr (intercalate " ")) -< xpathTrees
|
txt <- (listA (deep isText >>> getText) >>> arr (intercalate " ")) -< xpathTrees
|
||||||
href <- (getXPathTrees "//a" >>> getAttrValue "href") -< xpathTrees
|
href <- (getXPathTrees "//a" >>> getAttrValue "href") -< xpathTrees
|
||||||
returnA -< href, txt
|
returnA -< (href, txt)
|
||||||
|
|
||||||
|
|
||||||
extractNestedLinksWithText xpathCondition = proc url -> do
|
extractNestedLinksWithText xpathCondition = proc url -> do
|
||||||
|
Loading…
Reference in New Issue
Block a user