Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/logcreative/enkacard-web

A static web page generator for EnkaCard
https://github.com/logcreative/enkacard-web

Last synced: 3 days ago
JSON representation

A static web page generator for EnkaCard

Awesome Lists containing this project

README

        

# EnkaCard-web
A static web page generator for EnkaCard

This project is to provide a static page generator that could be deployed to
your personal website based on [EnkaCard](https://github.com/DEViantUA/EnkaCard)
project.

Since the profile is generated in image form, the web
page generated is not as interactive as the original https://enka.network/,
but it is enough for most use cases.

screenshot

## Usage

Install the dependencies:
```bash
pip install -r requirements.txt
```

And run the script, pass the uid as the argument:
```bash
python main.py -u 273518546
```
If you want to change the language, for example, to Chinese (Simplified), then use:
```bash
python main.py -u 273518546 -l chs
```
You could get more help by
```bash
python main.py -h
```

> If you encounter: `ERROR:enkanetwork.assets:Character not found with id: `, try run this command first
> ```bash
> git submodule update --init
> python update_assets.py
> ```
> to update the asset library.

After the generation, you could open `enkacard.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.