New example for download new data from [enkanetwork.py-data](https://github.com/mrwan200/enkanetwork.py-data)

This commit is contained in:
M-307 2022-07-13 02:56:56 +07:00
parent e6f862c53f
commit 17f149247f

12
example/download_data.py Normal file
View 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())