This library provides a java-wrapper around the JSON API provided by getstrike.net, which is a free website for finding torrents.
Just add it as dependency to your project. It's available via jCenter.
<dependency>
<groupId>com.priitlaht</groupId>
<artifactId>strikeapi</artifactId>
<version>1.0</version>
</dependency>
Read the set me up section first, if you haven't added jCenter as a repository to your pom.xml yet.
repositories {
jcenter()
}
dependencies{
compile group: 'com.priitlaht', name: 'strikeapi', version:'1.0'
}
/**
* Find top torrents by hash.
*
* @param hash Torrent hash
*/
List<Torrent> torrents = StrikeApi.find("your_torrent_hash");
/**
* Search torrents by title.
*
* @param searchPhrase
*/
List<Torrent> torrents = StrikeApi.search("marvel");
/**
* Search torrents by title and category.
*
* @param searchPhrase
* @param category Torrent category enum
*/
List<Torrent> torrents = StrikeApi.searchCategory("marvel", Category.OTHER);
/**
* Search torrents by title, category and quality.
*
* @param searchPhrase
* @param category Torrent category enum
* @param quality Torrent video quality enum
*/
List<Torrent> torrents = StrikeApi.searchCategory("marvel", Category.TV, VideoQuality.HD720P);
/**
* Find top torrents in category.
*
* @param category Torrent category enum
*/
List<Torrent> torrents = StrikeApi.top(Category.MOVIE);