Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/professordeveloper/nicehttp
nicehttp
https://github.com/professordeveloper/nicehttp
anime kotlin kotlin-http kotlin-okhttp3 nicehttp retrofit2-new
Last synced: about 2 months ago
JSON representation
nicehttp
- Host: GitHub
- URL: https://github.com/professordeveloper/nicehttp
- Owner: professorDeveloper
- License: gpl-3.0
- Created: 2024-09-12T08:26:31.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-12T09:49:50.000Z (4 months ago)
- Last Synced: 2024-10-31T09:12:45.143Z (about 2 months ago)
- Topics: anime, kotlin, kotlin-http, kotlin-okhttp3, nicehttp, retrofit2-new
- Language: Kotlin
- Homepage:
- Size: 186 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NiceHttp Copied From Blatzar`s NiceHttp Thanks for Blatzar
[![](https://jitpack.io/v/Blatzar/NiceHttp.svg)](https://jitpack.io/#professorDeveloper/NiceHttp)
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## Getting started
### Setup
In build.gradle repositories:
```groovy
maven { url 'https://jitpack.io' }
```In app/build.gradle dependencies:
```groovy
implementation 'com.github.professorDeveloper:NiceHttp:+'
```### Scraping a document
```kotlin
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())
}
```