(self, response, match_type='')
Yields domains from a regalert response (generator).
Yields domains from a regalert response (generator).
Yields domains from a regalert response ( generator ) .
def domainlist_regalert(self, response, match_type=''):
        """Yields domains from a regalert response (generator)."""
        data = response.json()
        for alert in data['response']['alerts']:
            if alert['match_type']==match_type or match_type=='':
                yield(alert['domain'].lower())
def domainlist_regalert ( self , response , match_type = '' ) : data = response . json ( ) for alert in data [ 'response' ] [ 'alerts' ] : if alert [ 'match_type' ] == match_type or match_type == '' : yield ( alert [ 'domain' ] . lower ( ) )