monoai.tools.domain_whois

 1def domain_whois(domain:str):
 2
 3    """
 4    Get the whois for a given domain:
 5    
 6    Args:
 7        domain (string): the domain
 8    """
 9
10    try:
11        from whois import whois
12    except ImportError:
13        raise ImportError("whois is not installed. Please install it with 'pip install whois'")
14
15    result = whois(domain)
16    return str(result)
def domain_whois(domain: str):
 2def domain_whois(domain:str):
 3
 4    """
 5    Get the whois for a given domain:
 6    
 7    Args:
 8        domain (string): the domain
 9    """
10
11    try:
12        from whois import whois
13    except ImportError:
14        raise ImportError("whois is not installed. Please install it with 'pip install whois'")
15
16    result = whois(domain)
17    return str(result)

Get the whois for a given domain:

Args: domain (string): the domain