LogCreative / StarRailCard-web

A static web page generator for StarRailCard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StarRailCard-web

A static web page generator for StarRailCard based on StarRailCard.

preview

Usage

Install Python 3.11 and above.

Install the dependencies:

pip install -r requirements.txt

And run the script, pass the uid as the argument:

python main.py -u 109814396

If you want to change the language, for example, to Chinese (Simplified) with the correct font being used, then use:

python main.py -u 109814396 -l cn -f "/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc"

where /usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc font should be installed on your computer manually.

You could get more help by

python main.py -h

After the generation, you could open railcard.html directly to preview the result. You could directly deploy those files to your website. Click the avatar to display the detail of different characters. And profile.jpg is also generated for your own use. You could add your customized style to make it look better.

About

A static web page generator for StarRailCard


Languages

Language:Python 55.1%Language:JavaScript 21.4%Language:CSS 18.6%Language:HTML 4.8%