Quickstart
Program that fetches player's profile.
import TrackerGG
import asyncio
API_KEY = "YOUR_API_KEY"
client = TrackerGG.CSGOClient(API_KEY)
player = input("player name? : ")
async def main():
print(await client.get_profile(player))
if __name__ == '__main__':
asyncio.run(main())
Import the TrackerGG module and the asyncio module for asynchronous processing.
Set an API key and create an instance of a CSGOClient with the API key
To handle asynchronous operations, create a "main()" function and executes the "get_profile" method inside it.
Execute the 'main' function asynchronously using the 'asyncio.run' method.
Last updated