Join Slack
Hi, how can I parse a string into an kotlinx html element ? I'm scrapping a page so I get a String f...
# kotlinx-html
a
Ayfri
12/04/2021, 5:57 AM
Hi, how can I parse a string into an kotlinx html element ? I'm scrapping a page so I get a String from an HTTP request and then I have to search some
p
with classes into this, I was doing Regexp for now but it's very heavy and ugly so I'm looking for other solutions
b
Big Chungus
12/04/2021, 11:46 AM
Just use jsoup java lib
Big Chungus
12/04/2021, 11:47 AM
Don't think you can parse into kotlinx
Big Chungus
12/04/2021, 11:48 AM
It supports all dom selectors as well as xpath Here's sample usage from kotlin
https://github.com/mpetuska/kamp/blob/master/scanner/src/main/kotlin/scanner/processor/PomProcessor.kt
a
Ayfri
12/04/2021, 10:12 PM
I've found this, is it good ?
https://docs.skrape.it/docs/
133
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by