forked from filipg/twilight-library
WIP
This commit is contained in:
parent
e4458b5780
commit
3314561a8a
@ -30,12 +30,11 @@ getLinkAndText xpathCondition = proc doc -> do
|
|||||||
returnA -< (href, txt)
|
returnA -< (href, txt)
|
||||||
|
|
||||||
|
|
||||||
extractNestedLinksWithText2 xpathCondition = proc x -> do
|
extractNestedLinksWithText2 xpathCondition = proc url -> do
|
||||||
doc <- downloadDocument -< x
|
doc <- downloadDocument -< url
|
||||||
thisValue <- this -< x
|
(link, text) <- getLinkAndText xpathCondition -< doc
|
||||||
(a,b) <- getLinkAndText xpathCondition -< doc
|
uriFixed <- expandURIFixed -< (link, url)
|
||||||
uriFixed <- expandURIFixed -< (a,thisValue)
|
returnA -< (uriFixed, text)
|
||||||
returnA -< (uriFixed, b)
|
|
||||||
|
|
||||||
|
|
||||||
extractRecords = extractLinksWithText "(//aside[@class='widget widget_maxmegamenu']//a[@class='mega-menu-link'])[1]" -- pary adres-tytuł podstrony
|
extractRecords = extractLinksWithText "(//aside[@class='widget widget_maxmegamenu']//a[@class='mega-menu-link'])[1]" -- pary adres-tytuł podstrony
|
||||||
|
Loading…
Reference in New Issue
Block a user