Commit Graph

8 Commits

Author SHA1 Message Date
Ondřej Synáček ae700330b9 fix: do not attempt to parse non-existent FB pages
When user enters something invalid (like number 123), it wuold still hit
FB webpage and return HTML. I do simple detection by looking at title
when it attempts to parse the DOM directly. When it contains "Content
Not Found", it is skipped.

Non-existent web pages cannot be parsed by using LDJSON parser and
looking at null data.
2020-12-26 21:03:03 +01:00
Ondřej Synáček 9da4c33ffd remove URL requirement for DOM parser 2020-07-19 08:14:34 +02:00
Ondřej Synáček 8458ae0b69 add minimum duration for DOM parser 2020-07-19 08:14:23 +02:00
Ondřej Synáček 59eb0191bf make logger optional so code can be re-used for CLI interface 2020-07-15 20:54:24 +02:00
Ondřej Synáček 0f5c9cf59c add fallback time for unknown start date 2019-12-15 10:56:26 +01:00
Ondřej Synáček f22841e1f4 improve parsing for start and end dates for DOMparser 2019-11-26 22:38:47 +01:00
Ondrej Synacek 06469d3236 add logger and daily rotating log files 2019-10-24 10:32:01 +02:00
Ondrej Synacek 889de553f9 add fallback parser when LD/JSON not found, use DOM parser 2019-10-23 22:08:49 +02:00