Number of players using Python.

Options
Hey everyone! I have a discord bot and Ive decided to add some commands to the bot like /players (Number of players in the game) /servers (Number of servers) and etc. If there is any way to get those kinds of information that would be awesome! Otherwise, I am thinking of creating Headless .exe and get information from it.