forked from filipg/twilight-library
comment
This commit is contained in:
parent
45e471a312
commit
25c6139e81
@ -28,6 +28,7 @@ extractNestedLinksWithText xpathCondition = proc url -> do
|
||||
|
||||
|
||||
extractRecords = proc x -> do
|
||||
-- todo more specific xpaths
|
||||
(a, b) <- extractLinksWithText "//aside[@class='widget widget_maxmegamenu']//a[@class='mega-menu-link']" -< x -- pary adres-tytuł podstrony
|
||||
(a', b') <- extractLinksWithText "//aside[@class='widget widget_maxmegamenu']//a[@class='mega-menu-link']" -< a -- pobieramy podstronę i kolejne podstrony z menu
|
||||
a'' <- extractNestedLinksWithText "(//big[a[contains(@href,'.pdf')][img]])[1]" -< a' -- pobieramy stronę z adresu URL i wyciągamy linki z tej strony pasujące do wyrażenia XPathowego
|
||||
|
Loading…
Reference in New Issue
Block a user