-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup basic familienkarte event collector #116
base: main
Are you sure you want to change the base?
setup basic familienkarte event collector #116
Conversation
|
||
|
||
override fun getAllUnparsedEvents(): List<String> { | ||
val document = Jsoup.parse(fetcher.fetchUrl("https://www.familienkarte.at/de/freizeit/veranstaltungen/veranstaltungskalender.html?events_cat_key=8")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
short question about the url. why limit it to events from category 8? also, i saw that by default the page only shows events from today, we should extend that so we get more events from them
if (endDate != null) { | ||
data[SemanticKeys.ENDDATE] = endDate.format(DateTimeFormatter.ISO_DATE) | ||
} | ||
data[SemanticKeys.TYPE] = "other" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type other does not really make sense, if you don't have any information on the type of event just don't add it :)
val data = mutableMapOf<String, String>() | ||
data[SemanticKeys.URL] = event | ||
if (endDate != null) { | ||
data[SemanticKeys.ENDDATE] = endDate.format(DateTimeFormatter.ISO_DATE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use ISO_DATE_TIME here
No description provided.