how to find ip address of website using python

Solutions on MaxInterview for how to find ip address of website using python by the best coders in the world

showing results for - "how to find ip address of website using python"
Chayma
13 Oct 2018
1import socket #module for gethostbyname
2website = 'www.google.com'# you can put any website
3ip = socket.gethostbyname(website)
4print(ip)
5
6
7'Output'
8'142.250.182.36'#ip of google.com