Prerequisites: Python GUI – tkinter
Domain information is very important for every user. It contains information like Name, organization, State, city, Ip address, emails, server name, etc. In this article, we will write code for getting domain information and bind it with GUI Application. We will use the Python-whois module to get information about the website. It’s able to extract data for all the popular TLDs (com, org, net, …)
Before writing the code we need to install python-whois Module. To install this type the below command in the terminal.
pip install python-whois
After installation, let understands this module with examples.
Step 1: Import python-whois module
Step 2: Use whois.whois( ) methods to get all information.
Step 3: Let’s, extract some importation data from the geeksforgeeks.com site.
Expration Date : 2025-06-06 18:16:43 Email : firstname.lastname@example.org Server name : ['NS1.PARKINGCREW.NET', 'NS2.PARKINGCREW.NET']
Let’s create a GUI for the above code using tkinter.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course