-
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
female coder collector #409
Conversation
the problem is the image on the female coder website is in "webp" format and when I ingested the collector on my local, it could not respond any image. |
val eventUrls = mutableListOf<String>() | ||
val document = Jsoup.parse(fetcher.fetchUrl(baseUrl)) | ||
|
||
document.select("div.et_pb_section_3 .event_details") |
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.
it is fine as it is, but you could rewrite this forEach loop with a .map operation
then it would look something like
val eventUrls = document.select("div.et_pb_section_3 .event_details")
.map {
it.select("a").first().attr("href")
}
val currentYear = LocalDate.now().year | ||
|
||
val localDate = LocalDate.parse("$date $currentYear", DateTimeFormatter.ofPattern("MMMM dd yyyy", Locale.ENGLISH)) | ||
val localStartTime = LocalTime.parse(startTime.uppercase(Locale.getDefault()), DateTimeFormatter.ofPattern("hh:mm a")) |
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 do not use Locale.getDefault(), use english or german
resolves #346