This script creates a summary of all played rounds on MusicLeague.
MusicLeague is an awesome online game where you submit Spotify songs to different topics. Each player can then rate the songs. Whoever gets the most points wins.
Guess Who: After some normal rounds our group decided to play league where we have to guess, who submitted the song. This script helps to get a better profile about each player and helps decide, who might submit which song.
This script requires Python 3.11+ and uses pipenv to manage dependencies.
Clone this repository and cd
into it.
To install all dependencies run:
pipenv install
To run the script, you need your session id from music league. You find it in the cookie header of every secured request to the music league website.
To run the script, execute the following command:
pipenv run python main.py --session ".eJw[...]PIQ"
The output looks like this:
Type python main.py -h
to print the help menu.
$ python main.py -h
usage: main.py --session SESSION [--output OUTPUT] [-h]
Fetches all leagues of user and creates statistics.
options:
--session SESSION (str, required) Your session ID which is used for every
request to music league. You find it in the cookie
header. Use double quotes or no quotes at all.
--output OUTPUT (str, default=statistics.csv) Specify filename of CSV
output.
-h, --help show this help message and exit