Skip to content

miracoly/music-league-statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music League Statistics

GitHub Pipenv locked Python version

This script creates a summary of all played rounds on MusicLeague.

Motivation

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.

Result

The result is a table of all submitted songs per round and league by player.

result

Installation

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

Usage

Get your session id

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.

session id
Figure 1. Chrome Developer Tools > Network-Console

Run the script

To run the script, execute the following command:

pipenv run python main.py --session ".eJw[...]PIQ"

The output looks like this:

console output

Help

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

About

Fetches played leagues and creates summary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages