GithubHelp home page GithubHelp logo

ctroller / rlfantasy Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 28 KB

Custom Rocket League Fantasy League Stats Aggregator

Home Page: https://twitter.com/drtrox

License: MIT License

Java 100.00%
rocket-league fantasy-league data-gathering java maven

rlfantasy's Introduction

RLFantasy

Forgot to create your league for RLFantasy, or didn't add people to it? Sucks.

But there's a way to run your own "private" league with the help of this app.

How it works

The app will fetch the weekly stat pages off of RLFantasy and parse the contents into Java Objects, then pretty print them into a file.

How to set it up

Simple: Download the latest release zip (containing 3 files: rlfantasy.jar, template_output.txt and template_participants.txt), then rename the template_output.txt file to output.txt, and do the same with the template_participants.txt (into participants.txt) file.

Then simply add users (important: usernames from RLFantasy, NOT team names!) to the participants.txt file (one per line), and optionally modify the output.txt file to your likings (use {DATA} as placeholder for the data).

How to run

The jar file is executable, so simply double-click it. Alternatively, run java -jar rlfantasy.jar in your command line.

The app will output the result to a file named rlfantasy.txt.

Customizing Output

With the rlfantasy.properties (don't forget to rename from template_) you can customize the format of the output. The following variables are available to use:

player_format:

Variable Description Example
{name} Name of the player Tylacto
{points} Points of the player 123
{position} Chosen player position ATT

output_format:

Variable Description Example
{rank} Current Weekly Rank 6
{align} Blank Space align to pretty print it a bit more
{rankLossGain} Rank Loss/Gain compared to last week +3
{teamName} RLFantasy Team Name What A Cool Team!
{user} Username that belongs to the team troxito
{totalPoints} Total Points of the team over all weeks 12345
{totalMVP} String representing the overall Team MVP Tylacto, 5555pts
{weeklyMVPs} String representing an enumeration of all MVPs per week (1) Tylacto, 555pts [ATT] | (2) Tylacto, 130pts [DEF]

Advanced: Building + Dependencies

Simply build it with maven.

Dependencies are OkHttp3, Jsoup and JetBrains Annotations (see pom.xml)

rlfantasy's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

rlfantasy's Issues

Add support for multiple participant lists

Idea:
Have multiple files called participants_suffix.txt, and list them up when starting the jar. allow choosing of which suffix to parse.

Could think about allowing multiple output formats too.

Add Place Loss/Gain

Add Place loss/gain from previous week to the output

E.G.

  1. (+1) Teamname owner
  2. (-)
  3. (-2)

Customize Output Format

Add ability to customize the format of the results

eg. change from [RANK]. [TEAM], [OWNER] ([PTS]) [MVP] to a more customizable format

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.