Commit Graph

18 Commits

Author SHA1 Message Date
Ondřej Synáček 71ba9d8533 fix: use browser's timezone to reflect correct time and date 2021-01-02 20:17:21 +01:00
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 a8c5d12a7b fix issues with deployment due to winston logging getting in the way 2020-11-15 15:13:49 +01:00
Ondřej Synáček cfd939a668 normalize URL when parsing event number from HTML file 2020-07-23 17:23:04 +02:00
Ondřej Synáček a661e54524 fix invalid function signature for event data extraction
Additionally fix specs
2020-07-19 08:14:35 +02:00
Ondřej Synáček f577fb6385 implement same parsing logic on server and frontend
Server now downloads the HTML file via new endpoint but the parsing logic now happens in
the browser. The reason for this is to have a way same code for both
environments.

If the JavaScript is disabled, it's still possible to call the previous
endpoint and download the file from the server.
2020-07-19 08:14:35 +02:00
Ondřej Synáček b3321b2f90 use crawling logic as a service for ICS retrieval 2020-07-19 08:14:35 +02:00
Ondřej Synáček 9da4c33ffd remove URL requirement for DOM parser 2020-07-19 08:14:34 +02:00
Ondřej Synáček 456eaa1fbc add specs for ICS retriever 2020-07-19 08:14:29 +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 48e012bbc0 add specs for LD JSON parser 2020-07-15 20:54:24 +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
Ondřej Synáček 7234d442e3 fix problem in LDJSON parser when address object is not available 2019-11-25 21:55:30 +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
Ondrej Synacek a41992d53b refactor retrieving ICS file 2019-10-23 20:37:06 +02:00