I'm using the module pythonwhois to get a list of many entries on specific domains:
def whois(self):
host = str(self.EntryText.get().lstrip("http://www."))
whois = pythonwhois.net.get_whois_raw(host)
print whois
whois
the above returns a list of entries like follows:
[u"Domain Name: google.com\nRegistry Domain ID: \nRegistrar WHOIS Server: whois.markmonitor.com\nRegistrar URL: http://www.markmonitor.com\nUpdated Date: 2014-05-19T04:00:17-0700\nCreation Date: 1997-09-15T00:00:00-0700\nRegistrar Registration Expiration Date: 2020-09-13T21:00:00-0700\n
My question is: how do I iterate over the list and print the results in an elegant human readable list?