Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LCC
Repository for the LCC, League Community Cup, data processing scripts.
Repository for the LCC, League Community Cup API for handling match data, tournament entries, and league player stats.

## Prerequisites
### Riot API
Expand All @@ -8,23 +8,10 @@ To use the fetch, you will need to create a Riot account and generate a riot API
Create a ```.env``` file and add
```
RIOT_API_KEY='your-key-here'
MONGO_URI='mongo-connection-string-here'
```

### Dependency Installation

1. Activate your virtual environment
2. Run ```pip install -r requirements.txt```

## Adding Match Data

The script will pull match IDs from the ```tournaments``` directory. To create a new tournament, simply add a ```.txt``` file to that directory and list the match IDs (one per line). Example match IDs can be found below

```
4945781121
4941568096
```

If a tournament is not entered on the first input field, it will default to LCC_Season_2

## Results
Once the program is run, an ```xlsx``` file containing the match and individual player stats will be available in the ```results``` directory labeled ```Stats_Report_{TODAYS DATE}```. A JSON file will also be created for each match input for additional programmatic work. I left some example files from 2024-04-12 in the ```results``` directory
2. Run ```pip install -r requirements.txt```
1,485 changes: 1,485 additions & 0 deletions example_json/match_data.json

Large diffs are not rendered by default.

Loading