How to check website IP address using Python
How to check website IP address using Python
import socket
import os
# This modul are use to chacked your wabsite ip adresss
#2nd We create a variable to input wabsite
os.system('clear')
print('Input wabsite link to get ip ')
print('exp ; www.exmpale.com')
mahdi_wabsite = input('Input your wabsite ; ')
# 3rd we create a varible to get wabsite ip
mahdi_ip = socket.gethostbyname(mahdi_wabsite)
# last we can get ip adress than print it
os.system('clear')
print(f'your wansite is ; {mahdi_wabsite}')
print(f'Your wabsite ip ; {mahdi_ip}')
VIDEO
Comments
Post a Comment