Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #find #ip #address #website #python
ADD COMMENT
Topic
Name
8+2 =