InvalidCredentials as error : exit ( error ) # Register all the clans you want to monitor list_of_clan_tags = coc_client. login ( "email", "password" ) except coc. get_player ( "tag" ) print ( f " troops!" ) async def main (): coc_client = coc. invalidcredentials as error : exit ( error ) player = await client. Client () as coc_client : try : await coc_client. import asyncio import coc async def main (): async with coc. This example will get a player with a certain tag, and search for 5 clans with a name. Python3 -m pip install -U git+ Quick Example Py -3 -m pip install -U coc.py # to install the development version: Python3 -m pip install -U coc.py # Windows Python 3.7 or higher is required # Linux/macOS Optimised for speed, memory and performance Key FeaturesĮntire coverage of the official Clash of Clans APIĮmail/password login removes the stress of managing tokens Easy to use asynchronous Clash of Clans API wrapper in Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |