Open Mikaela opened 9 years ago
Or are there even Python libraries for whois?
https://pypi.python.org/pypi?%3Aaction=search&term=whois&submit=search
https://pypi.python.org/pypi/whois/0.7 appears to be in Debian repositories, so it's probably everywhere.
That doesn't seem to give so much information either.
Python 3.4.2 (default, Oct 13 2014, 19:49:42)
[GCC 4.2.1 Compatible Debian Clang 3.0 (tags/RELEASE_30/final)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import whois
>>> domain = whois.query('mikaela.info')
>>> print(domain.__dict__)
{'last_updated': None, 'name': 'mikaela.info', 'creation_date': None, 'name_servers': {'dnssec:unsigned', 'coco.ns.cloudflare.com', 'lakas.ns.cloudflare.com', 'name'}, 'expiration_date': None, 'registrar': 'Gandi SAS (R191-LRMS)'}
>>>
And these hardcoded servers seem to not find all domains. eg:
<Moter8> moterbot, whois moter8.pw
[moterbot] Error: I couldn't find such a domain.
Wouldn't using local whois client make more sense? Or are there even Python libraries for whois (I am surprised if there aren't)?