mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-05-04 14:16:34 +00:00
fb28cbb87d
- 添加 scripts 目录的 package.json 和依赖配置 - 添加 README.md 说明文档 - 添加基础版本的抓取脚本
Shikigami Scraper
This script scrapes Shikigami data from the official Onmyoji website and updates the configuration.
Usage
- Install dependencies:
cd scripts
npm install
- Run the scraper:
npm run scrape
The script will:
- Fetch all Shikigami from different rarity types (SSR, SP, UR, SR, R, N, L, G)
- Download images to
public/assets/Shikigami/{rarity}/ - Update
src/data/Shikigami.jsonwith the new data
Output Structure
Images: public/assets/Shikigami/{rarity}/{id}.png
JSON: src/data/Shikigami.json
[
{
"avatar": "/assets/Shikigami/ssr/596.png",
"name": "神无月",
"rarity": "SSR"
}
]