skrapeit / skrape.it

A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion.
https://docs.skrape.it
MIT License
805 stars 59 forks source link

[FEATURE] parse html from InputStream #178

Closed christian-draeger closed 2 years ago

christian-draeger commented 2 years ago

htmlDocument only allow passing of String and File right now.

It should also support InputStream

Adding this feature Should basically just mean to add a htmlDocument function that handles a InputStream as parameter here : https://github.com/skrapeit/skrape.it/blob/master/html-parser/src/main/kotlin/it/skrape/core/Parser.kt (equivalent to what is already done with String and File as parameter)