Answers for "how to get a website's ip address with python"

1

how to find ip address of website using python

import socket #module for gethostbyname
website = 'www.google.com'# you can put any website
ip = socket.gethostbyname(website)
print(ip)


'Output'
'142.250.182.36'#ip of google.com
Posted by: Guest on May-04-2021

Code answers related to "how to get a website's ip address with python"

Python Answers by Framework

Browse Popular Code Answers by Language