genshin-wiki/run.py

25 lines
446 B
Python
Raw Normal View History

2023-04-29 14:59:16 +00:00
from scripts.avatar import parse_avatar_data
from scripts.item import parse_item_data
2023-04-15 05:09:56 +00:00
from utils.typedefs import Lang
2023-04-29 14:59:16 +00:00
async def parse(lang: Lang):
await parse_item_data(lang)
await parse_avatar_data(lang)
2023-04-15 05:09:56 +00:00
async def main():
for lang in Lang.__args__:
2023-04-29 14:59:16 +00:00
await parse(lang)
2023-04-15 05:09:56 +00:00
def __main__():
import asyncio
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
if __name__ == "__main__":
__main__()