Skip to main content

League of Legends Champions & Splash Arts — no API key required

Project description

lol_champs

League of Legends Champions & Splash Arts Library

Scrapes champion data and splash art directly from Riot's official Data Dragon CDN. No API key, no rate limiting, no authentication.

from lol_champs import get_all_champions, get_champion

# All 170+ champions
champs = get_all_champions()
for c in champs:
    print(f"{c.name}{c.title}  [{', '.join(c.tags)}]")

# Single champion with full skins
ahri = get_champion("Ahri")
print(f"{ahri.name} has {len(ahri.skins)} skins")

# Get a splash URL
skin = ahri.skins[0]
print(skin.splash_url)   # full CDN URL

# Download it
skin.download("ahri_default.jpg")

Install

pip install lol_champs/
# or from within the directory
pip install -e .

API

Function Returns Description
get_all_champions() list[Champion] All champions (basic data only)
get_all_champions(include_skins=True) list[Champion] All champions with full skin lists (slower)
get_champion("Ahri") Champion | None Single champion with all skins

Champion

Attribute Type Description
.id str Internal ID (e.g. "Aatrox")
.name str Display name
.title str Title line
.tags list[str] Roles: Fighter, Mage, Assassin, Tank, Support, Marksman
.skins list[Skin] All skins (default + chromas)
.stats dict Base stats (hp, armor, attackspeed, movespeed, etc.)
.info dict Ratings: attack, defense, magic, difficulty (0–10)
.partype str Resource type: Mana, Energy, Blood Well, etc.
.icon_url str URL to 48×48 square icon
.default_splash_url str URL to default splash art

Skin

Attribute / Method Returns Description
.name str Skin display name
.num int Skin number (0 = default)
.splash_url str 1920×1080 splash art URL
.loading_url str 640×960 loading screen URL
.centered_url str Cropped/centered variant URL
.download(path) str Download to file
.download_bytes() bytes Download into memory

Data Source

All data is fetched live from Riot Games Data Dragon:

  • https://ddragon.leagueoflegends.com/
  • Data is always the latest patch version
  • Results are cached in memory per process

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lol_champs-1.0.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lol_champs-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file lol_champs-1.0.0.tar.gz.

File metadata

  • Download URL: lol_champs-1.0.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for lol_champs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 46c4b055e77ba92c14d3d84a0fe90172c957291bce1a6c8a120532a156762f82
MD5 38b2fe6c8395b42ef2d0a86e8720d793
BLAKE2b-256 9414c8b9e5fc860dc01efc3593d5bc69dee669934b6dc4f9640e91a1e7a68e71

See more details on using hashes here.

File details

Details for the file lol_champs-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: lol_champs-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for lol_champs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90bd2829daf8c5a0720d87f3b5f02d4d3a4d9233265a87690fc04b68481af0d5
MD5 93c0527e8c3cf7f6dcce21296306d1fe
BLAKE2b-256 c3bd389be3900500f477bd1d7a7da701f68fe0b62adf9f3a58131e42e331d601

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page