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())
  1. Import the TrackerGG module and the asyncio module for asynchronous processing.

  2. Set an API key and create an instance of a CSGOClient with the API key

  3. To handle asynchronous operations, create a "main()" function and executes the "get_profile" method inside it.

  4. Execute the 'main' function asynchronously using the 'asyncio.run' method.

Last updated