mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-09 02:41:22 +08:00
20 lines
400 B
Python
20 lines
400 B
Python
import asyncio
|
|
|
|
from mihomo import Language, MihomoAPI, tools
|
|
|
|
|
|
async def main():
|
|
client = MihomoAPI(language=Language.EN)
|
|
old_data = await client.fetch_user(800333171)
|
|
|
|
# Change characters in game and wait for the API to refresh
|
|
# ...
|
|
|
|
new_data = await client.fetch_user(800333171)
|
|
data = tools.merge_character_data(new_data, old_data)
|
|
|
|
print(data)
|
|
|
|
|
|
asyncio.run(main())
|