A small and simple Android OkHttp wrapper to ease scraping. Mostly for personal use.
Featuring:
- Document scraping using jsoup
- Json parsing using jackson
- Easy functions akin to python requests
In build.gradle repositories:
maven { url 'https://jitpack.io' }
In app/build.gradle dependencies:
implementation 'com.github.professorDeveloper:NiceHttp:+'
lifecycleScope.launch {
val requests = Requests()
val doc = requests.get("https://github.com/Blatzar/NiceHttp").document
// Using CSS selectors to get the about text
println(doc.select("p.f4.my-3").text())
}