A python script to make speedrun.com global leaderboards.
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
To run the command type python [filename] [options]
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]
Usage: addtodb.py [OPTIONS]
Options:
-n, --nickname TEXT Runners nickname.
-
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_
Adding a new leaderboard type is very simple: just add a new function that will calculate the value you want in lbtypes.py.