Skip to content

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

hattvr/enka-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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 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}")
            generate_image(data, character, client.lang)

asyncio.run(main())

Run the script:

python main.py

Your character cards will be output in the /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