remove from url #page=1

This commit is contained in:
Mariusz B 2021-04-18 19:42:41 +00:00
parent 65cf05c014
commit 2cf1db1275

View File

@ -15,6 +15,7 @@ import Text.Printf
extractRecords = extractLinksWithText "//nav//a[contains(@href,'title=Kategoria:')]" extractRecords = extractLinksWithText "//nav//a[contains(@href,'title=Kategoria:')]"
>>> first (extractLinksWithText "//a[contains(@href,'title=Plik') and contains(@href,'pdf')]") >>> first (extractLinksWithText "//a[contains(@href,'title=Plik') and contains(@href,'pdf')]")
>>> first (first (extractLinksGeneralized "//div[@id='file']//iframe" "src")) >>> first (first (extractLinksGeneralized "//div[@id='file']//iframe" "src"))
>>> first (first (arr $ replace "#page=1" ""))
-- proby pobrania pdf i jpg -- proby pobrania pdf i jpg
--extractRecords = extractLinksWithText "//nav//a[contains(@href,'title=Kategoria:14_WDH')]" --extractRecords = extractLinksWithText "//nav//a[contains(@href,'title=Kategoria:14_WDH')]"