cli/streamingphish/streamingphish/features.py
def _fe_number_of_periods(sample):
        """
        Compute number of periods - several subdomains could be indicative of a phishing domain.

        Args:
            sample (dictionary): Info about the sample being analyzed i.e. subdomain, tld, fqdn

        Returns:
            result (dictionary): Keys are feature names, values are feature scores.
        """
        result = OrderedDict()
        result['num_periods'] = sample['fqdn'].count(".")
        return result

        Compute number of periods - several subdomains could be indicative of a phishing domain.

        Args:
            sample (dictionary): Info about the sample being analyzed i.e. subdomain, tld, fqdn

        Returns:
            result (dictionary): Keys are feature names, values are feature scores.
        
Compute number of periods - several subdomains could be indicative of a phishing domain.
Compute number of periods - several subdomains could be indicative of a phishing domain .
def _fe_number_of_periods(sample):
        result = OrderedDict()
        result['num_periods'] = sample['fqdn'].count(".")
        return result
def _fe_number_of_periods ( sample ) : result = OrderedDict ( ) result [ 'num_periods' ] = sample [ 'fqdn' ] . count ( "." ) return result
Compute number of periods - several subdomains could be indicative of a phishing domain.
Compute number of periods - several subdomains could be indicative of a phishing domain .
"""
        Compute number of periods - several subdomains could be indicative of a phishing domain.

        Args:
            sample (dictionary): Info about the sample being analyzed i.e. subdomain, tld, fqdn

        Returns:
            result (dictionary): Keys are feature names, values are feature scores.
        """
result (dictionary): Keys are feature names, values are feature scores.
result ( dictionary ) : Keys are feature names values are feature scores .
sample
Info about the sample being analyzed i.e. subdomain, tld, fqdn
Info about the sample being analyzed i . e . subdomain tld fqdn