forked from filipg/twilight-library
Optymalizacje
This commit is contained in:
parent
bc3ebf2eaa
commit
bf137cf60a
@ -33,7 +33,7 @@ mToString n
|
||||
extractMonth :: String -> String
|
||||
extractMonth n =
|
||||
case n =~~ ("[A-za-z]+" :: String) of
|
||||
Just month -> mToString (baseMonthNameToNumber (toLowerString month))
|
||||
Just month -> eliminate (baseMonthNameToNumber (toLowerString month))
|
||||
otherwise -> ""
|
||||
|
||||
mExtractYear :: String -> String
|
||||
@ -43,7 +43,7 @@ mExtractYear n =
|
||||
otherwise -> ""
|
||||
|
||||
changeDate :: String -> String
|
||||
changeDate a = mExtractYear a ++ "-" ++ extractMonth a
|
||||
changeDate a = eliminate (extractYear a) ++ "-" ++ extractMonth a
|
||||
|
||||
|
||||
extractRecords = extractLinksWithText "(//a[@class='magazine-list__year-item'])[last()]" -- pary adres-tytuł
|
||||
|
Loading…
Reference in New Issue
Block a user