mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
New example for download new data from [enkanetwork.py-data](https://github.com/mrwan200/enkanetwork.py-data)
This commit is contained in:
parent
e6f862c53f
commit
17f149247f
12
example/download_data.py
Normal file
12
example/download_data.py
Normal file
@ -0,0 +1,12 @@
|
||||
import asyncio
|
||||
|
||||
from enkanetwork import EnkaNetworkAPI
|
||||
|
||||
client = EnkaNetworkAPI(lang="th", debug=True)
|
||||
|
||||
async def main():
|
||||
await client.download_data()
|
||||
# You can see the progress download new content in console
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(main())
|
Loading…
Reference in New Issue
Block a user