Im trying to use this http://code.google.com/p/pywhois/
along with the socket.gethostbyaddr .
import socket
import pywhois
revip = socket.gethostbyaddr('50.57.48.133')
whois = pywhois.whois(revip[0])
for i in whois.emails:
print
Gives me three lines of nothing. Im trying to print out the emails from the whois query. The data stored inside whois.emails is
['josh.odom@rackspace.com', 'josh.odom@rackspace.com', 'support@clickandname.com']
Whats going wrong here?
To get the code working, you need to add i after print:
To get this format
you call print on the entire list (no looping):