SkillAgentSearch skills...

KtSoup

A Kotlin multiplatform HTML5 parsing library

Install / Use

/learn @DrewCarlson/KtSoup
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

KtSoup

Maven Central codecov

A multiplatform HTML5 parsing library built on Lexbor, Jsoup, and node-html-parser.

Documentation

API Docs

Usage

val documentString = """
<html>
    <body>
        <div id="test" class="test">Hello World</div>
    </body>
</html>
"""

val document = KtSoupParser.parse(documentString)
document.use { document ->
    val div = document.querySelector("#test")
    println(div.textContent()) // Hello World
    println(div.html())        // <div id="test" class="test">Hello World</div>
}

Download

Maven Central Sonatype Nexus (Snapshots)

repositories {
    mavenCentral()
    // Or snapshots
    maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}

dependencies {
    implementation("org.drewcarlson:ktsoup-core:$VERSION")
    implementation("org.drewcarlson:ktsoup-fs:$VERSION")
    implementation("org.drewcarlson:ktsoup-ktor:$VERSION")
}
<details> <summary>Toml (Click to expand)</summary>
[versions]
ktsoup = "1.0.0-SNAPSHOT"

[libraries]
ktsoup-core = { module = "org.drewcarlson:ktsoup-core", version.ref = "ktsoup" }
ktsoup-fs = { module = "org.drewcarlson:ktsoup-fs", version.ref = "ktsoup" }
ktsoup-ktor = { module = "org.drewcarlson:ktsoup-ktor", version.ref = "ktsoup" }
</details>

License

This project is licensed under Apache-2.0, found in LICENSE.

View on GitHub
GitHub Stars35
CategoryDevelopment
Updated2mo ago
Forks0

Languages

Kotlin

Security Score

95/100

Audited on Jan 29, 2026

No findings