https://kotlinlang.org logo
#getting-started
Title
# getting-started
m

Marko Novakovic

04/19/2022, 4:42 PM
can anyone give me initial direction for web scraping in Kotlin?
m

Matthew Gast

04/19/2022, 5:38 PM
There are a few options depending on which target you are aiming for. Off the top of my head, I know of Skrape{it} and jsoup for Kotlin/JVM. Skrape{it}: https://github.com/skrapeit/skrape.it jsoup: https://jsoup.org/
m

Marko Novakovic

04/19/2022, 8:12 PM
thank you
I will check them both out and try them for my usecase
@Matthew Gast I want to scrape
shtml
but those both seem to have problem with it. am getting malformed input errors
m

Matthew Gast

04/19/2022, 9:47 PM
I believe jsoup has an option to treat the document as XML, which has more lax rules about allowed input. You can try searching for information about that.
m

Marko Novakovic

04/20/2022, 8:48 AM
thank you
3 Views