Skip to content

silenzzz/RuTracker4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RuTracker4j

A Java library that provides access to RuTracker.org.

Features

  • Search for torrents by keyword
  • Get topic details
  • Download torrent file

Documentation

See wiki on GitHub.

Installation

  1. Add Jitpack repository in <repositories> section in pom.xml:

    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>
  2. Add RuTracker4j dependency in <dependencies> section in pom.xml:

    <dependency>
        <groupId>dev.silenzzz</groupId>
    <artifactId>RuTracker4j</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    </dependency>

Usage

Create rutracker client

import com.example.RuTracker4j;
import dev.silenzzz.rutracker4j.RuTracker4jDefaultClient;
import dev.silenzzz.rutracker4j.scrapper.net.AccountCredentials;

//...//
RuTracker4j ruTracker = new RuTracker4jDefaultClient(new AccountCredentials("user", "pass"));
///...//

Get topic

//...//
Topic topic = ruTracker.findTopicById(633781);
///...//

TODO more examples

License

Released under the MIT License. See LICENSE for more.