Skip to content

LogCreative/StarRailCard-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors