Skip to content

FernE047/SrcLbMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SrcLbMaker

A python script to make speedrun.com global leaderboards.

Installation

You need python 3.6 or higher.

  • First, go to the folder where you want to clone the repository:

    cd yourDirectory
  • Then clone the repository:

    git clone https://github.com/Rayu1/SrcLbMaker.git
  • Then install requirements:

    pip install -r requirements.txt

Usage

To run the command type python [filename] [options]

Makelb

Usage: makelb.py [OPTIONS]

Options:
  -t, --lbtype [wrs|runs|gp|mc]
                                  Type of the leaderboard.

                                  Wrs - world records count,

                                  runs - runs count,

                                  gp - games played count,

                                  mc - games moderation count,

                                  cat - categories played count,

                                  pod - podiums count.  [required]
  -L, --lblength INTEGER          Length of the leaderboard.  [default: 100]

Addtodb

Usage: addtodb.py [OPTIONS]

Options:
  -n, --nickname TEXT  Runners nickname.

Examples

  • To make a world records count leaderboard run:

    python makelb.py -t wrs -L 50
  • To add runner "Rayu_" to database run:

    python addtodb.py -n Rayu_

Developing

Adding a new leaderboard type is very simple: just add a new function that will calculate the value you want in lbtypes.py.

About

a python script to make leaderboards using a CSV with the runners name, IDs and Flag Emojis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages