Skip to content
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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

paul-em
Copy link

@paul-em paul-em commented Oct 14, 2023

No description provided.



override fun getAllUnparsedEvents(): List<String> {
val document = Jsoup.parse(fetcher.fetchUrl("https://www.familienkarte.at/de/freizeit/veranstaltungen/veranstaltungskalender.html?events_cat_key=8"))
Copy link
Member

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"
Copy link
Member

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)
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants