A repository for storing and accessing art from HoYoverse games, Genshin Impact and Honkai: Star Rail, with the use of raw.githubusercontent. This is free for anyone to use and all art belongs to HoYoverse. Use Enka.Network API to obtain character IDs.
Genshin Impact - v5.0
Honkai: Star Rail - v2.4
This repo is managed by GitHub Workflow Actions, I will try to check on it from time to time. Please contact me on Discord(@ScobbleQ) if anything is wrong.
Genshin Impact using JavaScript:
const { loadImage } = require('@napi-rs/canvas');
let id = "10000051";
const image = await loadImage(`https://raw.githubusercontent.com/ScobbleQ/HoYo-Assets/main/genshin/splash/${id}.png`);
Honkai: Star Rail using Python:
from PIL import Image
import requests
id = '1307'
response = requests.get(f'https://raw.githubusercontent.com/ScobbleQ/HoYo-Assets/main/starrail/wish/{id}.png')
image = Image.open(BytesIO(response.content))
python -m pip install requests
python -m pip install pillow
python -m pip install tqdm