✨ support: pic
21
func/fetch_src.py
Normal file
@ -0,0 +1,21 @@
|
||||
import shutil
|
||||
import aiofiles
|
||||
import ujson as jsonlib
|
||||
from pathlib import Path
|
||||
|
||||
src_dir = Path("src")
|
||||
data_dir = Path("data")
|
||||
pic_lists = ["avatar", "avatar_gacha", "destiny", "element"]
|
||||
|
||||
|
||||
async def move_files():
|
||||
for i in pic_lists:
|
||||
print(f"Moving: {i}")
|
||||
src_dir_ = src_dir / i
|
||||
data_dir_ = data_dir / i
|
||||
datas = [file.name.split(".")[0] for file in src_dir_.glob("*")]
|
||||
if data_dir_.exists():
|
||||
shutil.rmtree(data_dir_)
|
||||
shutil.copytree(src_dir_, data_dir_)
|
||||
async with aiofiles.open(data_dir_ / "info.json", "w", encoding="utf-8") as f:
|
||||
await f.write(jsonlib.dumps(datas, indent=4, ensure_ascii=False))
|
2
main.py
@ -7,6 +7,7 @@ from func.fetch_materials import fetch_materials, fetch_materials_infos, dump_ma
|
||||
from func.fetch_monsters import fetch_monsters, fetch_monsters_infos, dump_monsters, read_monsters
|
||||
from func.fetch_relics import fetch_relics, fetch_relics_infos, dump_relics, read_relics
|
||||
from func.fetch_raiders import get_raiders
|
||||
from func.fetch_src import move_files
|
||||
|
||||
data_path = Path("data")
|
||||
data_path.mkdir(exist_ok=True)
|
||||
@ -58,6 +59,7 @@ async def wiki(
|
||||
|
||||
async def bbs_photos():
|
||||
await get_raiders()
|
||||
await move_files()
|
||||
|
||||
|
||||
async def main(
|
||||
|
BIN
src/avatar/三月七.png
Normal file
After Width: | Height: | Size: 3.6 MiB |
BIN
src/avatar/丹恒.png
Normal file
After Width: | Height: | Size: 3.4 MiB |
BIN
src/avatar/佩拉.png
Normal file
After Width: | Height: | Size: 3.7 MiB |
BIN
src/avatar/停云.png
Normal file
After Width: | Height: | Size: 3.5 MiB |
BIN
src/avatar/克拉拉.png
Normal file
After Width: | Height: | Size: 2.9 MiB |
BIN
src/avatar/卡芙卡.png
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
src/avatar/姬子.png
Normal file
After Width: | Height: | Size: 4.0 MiB |
BIN
src/avatar/娜塔莎.png
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
src/avatar/布洛妮娅.png
Normal file
After Width: | Height: | Size: 3.1 MiB |
BIN
src/avatar/希儿.png
Normal file
After Width: | Height: | Size: 3.5 MiB |
BIN
src/avatar/希露瓦.png
Normal file
After Width: | Height: | Size: 3.4 MiB |
BIN
src/avatar/开拓者_火.png
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
src/avatar/开拓者_物理.png
Normal file
After Width: | Height: | Size: 3.7 MiB |
BIN
src/avatar/彦卿.png
Normal file
After Width: | Height: | Size: 4.4 MiB |
BIN
src/avatar/景元.png
Normal file
After Width: | Height: | Size: 3.2 MiB |
BIN
src/avatar/杰帕德.png
Normal file
After Width: | Height: | Size: 3.3 MiB |
BIN
src/avatar/桑博.png
Normal file
After Width: | Height: | Size: 3.6 MiB |
BIN
src/avatar/瓦尔特.png
Normal file
After Width: | Height: | Size: 4.2 MiB |
BIN
src/avatar/白露.png
Normal file
After Width: | Height: | Size: 3.4 MiB |
BIN
src/avatar/素裳.png
Normal file
After Width: | Height: | Size: 3.4 MiB |
BIN
src/avatar/罗刹.png
Normal file
After Width: | Height: | Size: 3.4 MiB |
BIN
src/avatar/艾丝妲.png
Normal file
After Width: | Height: | Size: 4.0 MiB |
BIN
src/avatar/虎克.png
Normal file
After Width: | Height: | Size: 2.7 MiB |
BIN
src/avatar/银狼.png
Normal file
After Width: | Height: | Size: 4.1 MiB |
BIN
src/avatar/阿兰.png
Normal file
After Width: | Height: | Size: 3.3 MiB |
BIN
src/avatar/青雀.png
Normal file
After Width: | Height: | Size: 4.2 MiB |
BIN
src/avatar/黑塔.png
Normal file
After Width: | Height: | Size: 3.2 MiB |
BIN
src/avatar_gacha/三月七.png
Normal file
After Width: | Height: | Size: 276 KiB |
BIN
src/avatar_gacha/丹恒.png
Normal file
After Width: | Height: | Size: 233 KiB |
BIN
src/avatar_gacha/佩拉.png
Normal file
After Width: | Height: | Size: 352 KiB |
BIN
src/avatar_gacha/停云.png
Normal file
After Width: | Height: | Size: 337 KiB |
BIN
src/avatar_gacha/克拉拉.png
Normal file
After Width: | Height: | Size: 276 KiB |
BIN
src/avatar_gacha/卡芙卡.png
Normal file
After Width: | Height: | Size: 244 KiB |
BIN
src/avatar_gacha/姬子.png
Normal file
After Width: | Height: | Size: 318 KiB |
BIN
src/avatar_gacha/娜塔莎.png
Normal file
After Width: | Height: | Size: 217 KiB |
BIN
src/avatar_gacha/布洛妮娅.png
Normal file
After Width: | Height: | Size: 311 KiB |
BIN
src/avatar_gacha/希儿.png
Normal file
After Width: | Height: | Size: 239 KiB |
BIN
src/avatar_gacha/希露瓦.png
Normal file
After Width: | Height: | Size: 257 KiB |
BIN
src/avatar_gacha/开拓者_火.png
Normal file
After Width: | Height: | Size: 248 KiB |
BIN
src/avatar_gacha/开拓者_物理.png
Normal file
After Width: | Height: | Size: 230 KiB |
BIN
src/avatar_gacha/彦卿.png
Normal file
After Width: | Height: | Size: 266 KiB |
BIN
src/avatar_gacha/景元.png
Normal file
After Width: | Height: | Size: 376 KiB |
BIN
src/avatar_gacha/杰帕德.png
Normal file
After Width: | Height: | Size: 268 KiB |
BIN
src/avatar_gacha/桑博.png
Normal file
After Width: | Height: | Size: 272 KiB |
BIN
src/avatar_gacha/瓦尔特.png
Normal file
After Width: | Height: | Size: 212 KiB |
BIN
src/avatar_gacha/白露.png
Normal file
After Width: | Height: | Size: 251 KiB |
BIN
src/avatar_gacha/素裳.png
Normal file
After Width: | Height: | Size: 301 KiB |
BIN
src/avatar_gacha/罗刹.png
Normal file
After Width: | Height: | Size: 292 KiB |
BIN
src/avatar_gacha/艾丝妲.png
Normal file
After Width: | Height: | Size: 209 KiB |
BIN
src/avatar_gacha/虎克.png
Normal file
After Width: | Height: | Size: 327 KiB |
BIN
src/avatar_gacha/银狼.png
Normal file
After Width: | Height: | Size: 293 KiB |
BIN
src/avatar_gacha/阿兰.png
Normal file
After Width: | Height: | Size: 225 KiB |
BIN
src/avatar_gacha/青雀.png
Normal file
After Width: | Height: | Size: 271 KiB |
BIN
src/avatar_gacha/黑塔.png
Normal file
After Width: | Height: | Size: 309 KiB |
BIN
src/destiny/丰饶.png
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
src/destiny/同谐.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
src/destiny/存护.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
src/destiny/巡猎.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
src/destiny/智识.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
src/destiny/毁灭.png
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
src/destiny/虚无.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
src/element/冰.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
src/element/火.png
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
src/element/物理.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
src/element/虚数.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
src/element/量子.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
src/element/雷.png
Normal file
After Width: | Height: | Size: 58 KiB |
BIN
src/element/风.png
Normal file
After Width: | Height: | Size: 55 KiB |