https://github.com/magonxesp/booru-client
API client for booru based sites (Konachan, yande.re, Danbooru, etc)
https://github.com/magonxesp/booru-client
booru-client danbooru konachan kotlin-android kotlin-jvm kotlin-library safebooru
Last synced: 1 day ago
JSON representation
API client for booru based sites (Konachan, yande.re, Danbooru, etc)
- Host: GitHub
- URL: https://github.com/magonxesp/booru-client
- Owner: magonxesp
- License: mit
- Created: 2024-02-06T21:03:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-15T09:52:55.000Z (over 1 year ago)
- Last Synced: 2025-06-10T09:53:22.112Z (15 days ago)
- Topics: booru-client, danbooru, konachan, kotlin-android, kotlin-jvm, kotlin-library, safebooru
- Language: Kotlin
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Booru client
Danbooru, yande.re and konachan client for kotlin
## Instalation
Add the dependency and the required dependencies
```kotlin
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_corroutines_version") // required
implementation("io.github.magonxesp:booru-client:1.0.0")
```## Usage
Search by tag on Konachan for example.
```kotlin
import io.github.magonxesp.booruclient.konachan.KonachanClient
import kotlinx.coroutines.runBlockingrunBlocking {
val client = KonachanClient()client.search {
tag("sousou_no_frieren")
}.forEach { post ->
println(post.previewUrl)
}
}```
The `search` method has a lambda that builds the search query.
For the Konachan client has the following methods:
* `tag`
* `size`
* `order`
* `rating`The other clients have only the `tag` method for search.
### Available clients
* `io.github.magonxesp.booruclient.danbooru.DanbooruClient` The Danbooru client
* `io.github.magonxesp.booruclient.konachan.KonachanClient` The Konachan sfw client
* `io.github.magonxesp.booruclient.konachan.KonachanNsfwClient` The Konachan nsfw client
* `io.github.magonxesp.booruclient.yandere.YandereClient` The Yande.re client
* `io.github.magonxesp.booruclient.safebooru.SafebooruClient.kt` The Safebooru client