mirror of
https://github.com/tiennm99/loldle.git
synced 2026-08-31 02:25:37 +00:00
Workflows move to the repo root: deploy and CI build from web/, and a single update-champions workflow replaces the old two-repo pipeline (scrape in data/, copy into web/static/, redeploy). Go module becomes github.com/tiennm99/loldle/data. Root README maps the three parts.
1.2 KiB
1.2 KiB
loldle-data
LoLdleData rewritten in Go — fetches League of Legends champion data from Riot's Data Dragon API and outputs a structured JSON file for use in the web app in web/.
What it extracts
For each champion, the tool collects:
- Name, title, resource type (Mana, Energy, etc.)
- Genre / class (Fighter, Mage, Assassin, …)
- Attack type (Melee / Ranged)
- Gender
- Release year
- Region (from community-maintained data)
- Role / lane (Top, Mid, ADC, Support, Jungle)
- Skin count
Usage
go run .
Outputs champions.json in the current directory. Requires internet access to reach ddragon.leagueoflegends.com.
Output schema
{
"id": "Aatrox",
"name": "Aatrox",
"title": "the Darkin Blade",
"resource": "Blood Well",
"genre": "Fighter",
"skinCount": 41,
"gender": "male",
"attackType": "close",
"releaseDate": 2013,
"region": "runeterra",
"lane": "top"
}
A human-readable CHAMPIONS.md table is also generated alongside the JSON.
Used by
web/— the Wordle-style LoL guessing game that consumes this data.
License
Apache-2.0 — see LICENSE.