{"id":25720479,"url":"https://github.com/skrapeit/skrapeit-docs","last_synced_at":"2025-11-19T05:04:46.405Z","repository":{"id":52962054,"uuid":"183516931","full_name":"skrapeit/skrapeit-docs","owner":"skrapeit","description":"source of the skrape{it} documentation","archived":false,"fork":false,"pushed_at":"2024-02-18T07:34:23.000Z","size":4994,"stargazers_count":2,"open_issues_count":6,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:51:25.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.skrape.it","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skrapeit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-25T22:12:26.000Z","updated_at":"2023-12-05T05:20:24.000Z","dependencies_parsed_at":"2025-02-25T17:50:45.846Z","dependency_job_id":"742b65a4-e6d9-4b44-92a4-64ad6752ec49","html_url":"https://github.com/skrapeit/skrapeit-docs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skrapeit/skrapeit-docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrapeit%2Fskrapeit-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrapeit%2Fskrapeit-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrapeit%2Fskrapeit-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrapeit%2Fskrapeit-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skrapeit","download_url":"https://codeload.github.com/skrapeit/skrapeit-docs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skrapeit%2Fskrapeit-docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285187925,"owners_count":27129352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-25T17:50:43.517Z","updated_at":"2025-11-19T05:04:46.390Z","avatar_url":"https://github.com/skrapeit.png","language":null,"funding_links":["https://www.paypal.me/skrapeit"],"categories":[],"sub_categories":[],"readme":"---\ndescription: A Story of Deserializing HTML / XML.\n---\n\n# Introduction\n\n{% hint style=\"info\" %}\n[**skrape{it}**](http://www.skrape.it) is a Kotlin-based HTML/XML testing and web scraping library that can be used seamlessly in Spring-Boot, Ktor, Android or other Kotlin-JVM projects. The ability to **analyze and extract HTML including client-side rendered DOM trees** and all other XML-related markup specifications such as SVG, UML, RSS,... makes it unique. It places particular emphasis on **ease of use** and a **high level of readability** by providing an **intuitive DSL**. First and foremost skrape{it} aims to be a testing tool \\(not tied to a particular test runner\\), but it can also be used to scrape websites in a convenient fashion.\n{% endhint %}\n\n## A Story of Deserializing HTML\n\nHave you ever heard of the [**kotlinx.html**](https://github.com/Kotlin/kotlinx.html) DSL?  \nIn case you don't, it is a Kotlin multiplatform library that provides a type-safe DSL to build / serialize static HTML right from your Kotlin code.\n\nBut what if we want to do it the other way around and deserialize HTML or XML in Kotlin?\n\n💪 Let's rescue the world \\(at least in terms of html scraping 🤓\\) and do it the Kotlin way.\n\nThe idea to have a Kotlin-based library to scrape or parse HTML / XML was getting clearer after seeing the awesome talk about [_**Creating Internal DSLs in Kotlin**_](https://kotlinconf.com/talks/#date=5-october\u0026session=41599) by Venkat Subramaniam at the KotlinConf 2018 in Amsterdam. Totally amazed by the readability and the possibilities a DSL written in Kotlin provides, the idea of Skrape{it} was born!\n\nThe major paradigms of the library are that it's flexible, highly readable, not bound to specific test-runner and reactive / non blocking\n\n\u003e Hold on, hold on. I'm already knowing a library that is doing what you described, it's called [jSoup](https://jsoup.org) or I could  just use Selenium in order to behave in the manner mentioned above.\n\nNearly true. **Skrape{it}** is using jSoup internally to parse HTML documents. But since jSoup is written in Java it's neither null-safe nor intuitiv to use and read. Skrape{it} abstracts the idea of jSoup but it's easy to use by having a focus on readability by simplicity and has **native support for scraping of client-side rendered webpages** which is not possible with jSoup. The whole rendering will happen inside the JVM - from which it follows that no browser installation and ramp-up is needed \\(contrary to Selenium\\).  \nFurthermore, Skrape{it} offers the possibility to verify expectations by offering a DSL that is specifically designed to do HTML-related assertions and bindings for well-known testing libraries and HTTP clients.\n\n## Open source\n\n### _Skrape{it}_ is an open source project distributed under the liberal [MIT license](https://raw.githubusercontent.com/skrapeit/skrape.it/master/LICENSE).  The source code is available at [GitHub](https://github.com/skrapeit/skrape.it).\n\n#### Sponsorship\n\n**Skrape{it}** **is** and **always** will be **free and open-source**. However your sponsorship of this project is greatly appreciated and will fund the caffeine and pizzas that fuel its development.\n\nTo sponsor Skrape{it}, just click this button → [![Donate](https://img.shields.io/badge/-donate-blue.svg?logo=paypal)](https://www.paypal.me/skrapeit)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrapeit%2Fskrapeit-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskrapeit%2Fskrapeit-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskrapeit%2Fskrapeit-docs/lists"}