Hi, how can I parse a string into an kotlinx html ...
# kotlinx-html
a
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
Just use jsoup java lib
Don't think you can parse into kotlinx
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
I've found this, is it good ? https://docs.skrape.it/docs/
112 Views