mirror of
https://github.com/PaiGramTeam/genshin-wiki.git
synced 2024-11-21 06:46:38 +00:00
25 lines
446 B
Python
25 lines
446 B
Python
from scripts.avatar import parse_avatar_data
|
|
from scripts.item import parse_item_data
|
|
from utils.typedefs import Lang
|
|
|
|
|
|
async def parse(lang: Lang):
|
|
await parse_item_data(lang)
|
|
await parse_avatar_data(lang)
|
|
|
|
|
|
async def main():
|
|
for lang in Lang.__args__:
|
|
await parse(lang)
|
|
|
|
|
|
def __main__():
|
|
import asyncio
|
|
|
|
loop = asyncio.new_event_loop()
|
|
loop.run_until_complete(main())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
__main__()
|