The “WHO” command matches a pattern against users on a network:
For example, let's say you wanted to search for everyone whose username began with “K”:
Let's create a method that queries the server with the “WHO” command:
We can also request information on an indivudal using the “WHOIS” command:
Creating a Python method that uses this command is, of course, easy:
Lastly, we can look up information on a user that has changed his or her nickname or has left the network using “WHOWAS”:
And here's the Python method:
blog comments powered by Disqus |