[Solved] Iterate over a list in python

A simple way is to simply print each string in the returned whois: host=”stackoverflow.com” whois = pythonwhois.net.get_whois_raw(host) for item in whois: print item This would output something like this: Domain Name: STACKOVERFLOW.COM Registrar WHOIS Server: whois.name.com Registrar URL: http://www.name.com Updated Date: 2014-05-09T17:51:17-06:00 Creation Date: 2003-12-26T19:18:07-07:00 Registrar Registration Expiration Date: 2015-12-26T19:18:07-07:00 Registrar: Name.com, Inc. Registrar IANA … Read more