Skip to content
forked from hattvr/enka-card

A python-based card generation script that allows users to generate Enka.Network cards with ease.

Notifications You must be signed in to change notification settings

KT-Yeh/enka-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enka.Network Card Generation (Python-Based)


About

A python-based card generation script that allows users to generate Enka.Network cards with ease.

Project Stack

Initial Setup

Install the required dependencies:

pip install -r requirements.txt

Usage

Change the UID in main.py to your UID.

import asyncio

from enkanetwork import EnkaNetworkAPI, Language
from enka_card.generator import generate_image

client = EnkaNetworkAPI(lang=Language.EN) # <- Change to whichever language you want
uid = 604905943 # <- Change this to your UID

async def main():
    async with client:
        data = await client.fetch_user(uid)
        for character in data.characters:
            print(f"[{uid}] Generating enka-card for {character.name}")
            await generate_image(data, character, client.lang)

asyncio.run(main())

Run the script:

python main.py

Your character cards will be output in the enka_card/output directory. Happy generating!

About

A python-based card generation script that allows users to generate Enka.Network cards with ease.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%