Skip to content

sauing/ECC_Ranking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECC Rankings (KNCB)

CI

View Published Rankings Page

Scrape KNCB matchcentre stats for Eindhoven CC, compute ICC-style club rankings (klasse-weighted), and publish to GitHub Pages from the docs/ folder.

Quick start

Note: Ensure that requirements.txt exists in the repository root before running setup or CI.

python -m venv .venv
. .venv/Scripts/activate  # Windows
pip install -r requirements.txt
python -m ecc_rankings.run

Fantasy points JSON

Generate Eindhoven fantasy-points JSON from KNCB scorecard batting+bowling URLs (only mapped Eindhoven players):

python -m ecc_rankings.run_fantasy

This writes docs/ecc_fantasy_points_2025.json using custom rules for runs, boundaries, wickets, maidens, economy and fielding. Ensure dependencies are installed with pip install -r requirements.txt.

How to test fantasy generator

python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt
pytest -q
python -m ecc_rankings.run_fantasy
python -m json.tool docs/ecc_fantasy_points_2025.json > /dev/null

Optional quick check for mapped players in output:

python - <<'PY2'
import json
with open("docs/ecc_fantasy_points_2025.json", encoding="utf-8") as f:
    d = json.load(f)
print("players:", len(d.get("playersWithPoints", [])))
print("sample:", d.get("playersWithPoints", [])[0] if d.get("playersWithPoints") else {})
PY2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors