I have a simple Python script that gets the IP for a domain and looks up the country using Maxmind. I would like that script to also get what webhosting company that hosts that IP/site. Is that possible, and if so how? I've searched this site and elsewhere without much luck.
>>> import socket
>>> socket.gethostbyaddr("69.59.196.211")
('stackoverflow.com', ['211.196.59.69.in-addr.arpa'], ['69.59.196.211'])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With