Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/logcreative/enkacard-web
- Owner: LogCreative
- Created: 2023-07-25T07:35:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-19T16:01:31.000Z (5 months ago)
- Last Synced: 2024-12-06T18:57:30.136Z (17 days ago)
- Language: Python
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EnkaCard-web
A static web page generator for EnkaCardThis 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.## 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.