https://github.com/aki-ks/pantsucat-api
Java API for https://pantsu.cat/
https://github.com/aki-ks/pantsucat-api
nyaa pantsu sukebei torrent
Last synced: 3 months ago
JSON representation
Java API for https://pantsu.cat/
- Host: GitHub
- URL: https://github.com/aki-ks/pantsucat-api
- Owner: aki-ks
- Created: 2018-02-25T23:12:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T07:44:11.000Z (over 6 years ago)
- Last Synced: 2025-03-15T23:26:45.037Z (7 months ago)
- Topics: nyaa, pantsu, sukebei, torrent
- Language: Java
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PantsuCat-API
Java API implementation for https://pantsu.cat/# Installation
One way to use this library is to inculude it through jitpack.
How to use it with your build tool is explained at [their page](https://jitpack.io/#aki-ks/PantsuCat-API).If you're building with sbt, you may add this library as a remote project in your `build.sbt` and let your project depend on it.
Sbt builds the library from source and will apply all new commits to the repository.
``` sbt
lazy val pantsuCat = RootProject(uri("https://github.com/kaysubs/PantsuCat-API.git"))
dependsOn(pantsuCat)
```# Usage
The entry point of this API is the `PantsuCatApi` interface.Here's an example usage:
``` Java
SearchResponse response = PantsuCatApi.getInstance().search(new SearchRequest()
.setSearchTerm("Overlord")
.setCategories(Category.Anime.ENGLISH)
.setSortedBy(SearchRequest.Sort.SEEDERS)
);for(TorrentInfo result : response.getTorrents())
System.out.println(result.getName());
```For more examples you may have a look at the `de.kaysubs.tracker.pantsucat.examples` package.