cli/streamingphish/streamingphish/features.py
def _fqdn_parts(fqdn):
        """
        Break apart domain parts and return a dictionary representing the individual attributes
        like subdomain, domain, and tld.

        Args:
            fqdn (string): FQDN being analyzed.

        Returns:
            result (dictionary): Each part of the fqdn, i.e. subdomain, domain, domain + tld
        """
        parts = tldextract.extract(fqdn)
        result = {}
        result['subdomain'] = parts.subdomain
        result['domain'] = parts.domain
        result['tld'] = parts.suffix

        return result

        Break apart domain parts and return a dictionary representing the individual attributes
        like subdomain, domain, and tld.

        Args:
            fqdn (string): FQDN being analyzed.

        Returns:
            result (dictionary): Each part of the fqdn, i.e. subdomain, domain, domain + tld
        
Break apart domain parts and return a dictionary representing the individual attributes
like subdomain, domain, and tld.
Break apart domain parts and return a dictionary representing the individual attributes like subdomain domain and tld .
def _fqdn_parts(fqdn):
        parts = tldextract.extract(fqdn)
        result = {}
        result['subdomain'] = parts.subdomain
        result['domain'] = parts.domain
        result['tld'] = parts.suffix
        return result
def _fqdn_parts ( fqdn ) : parts = tldextract . extract ( fqdn ) result = { } result [ 'subdomain' ] = parts . subdomain result [ 'domain' ] = parts . domain result [ 'tld' ] = parts . suffix return result
Break apart domain parts and return a dictionary representing the individual attributes
like subdomain, domain, and tld.
Break apart domain parts and return a dictionary representing the individual attributes like subdomain domain and tld .
"""
        Break apart domain parts and return a dictionary representing the individual attributes
        like subdomain, domain, and tld.

        Args:
            fqdn (string): FQDN being analyzed.

        Returns:
            result (dictionary): Each part of the fqdn, i.e. subdomain, domain, domain + tld
        """
result (dictionary): Each part of the fqdn, i.e. subdomain, domain, domain + tld
result ( dictionary ) : Each part of the fqdn i . e . subdomain domain domain + tld
fqdn
FQDN being analyzed.
FQDN being analyzed .