(self, asn)
return {'source': '', 'type': 'Unknown'}
Read the 2015 CAIDA database and returns the classification for the given ASN
        input: asn : integer
        output {'source': SOURCE, 'type': TYPE}
Read the 2015 CAIDA database and returns the classification for the given ASN
        input: asn : integer
        output {'source': SOURCE, 'type': TYPE}
Read the 2015 CAIDA database and returns the classification for the given ASN input : asn : integer output { source : SOURCE type : TYPE }
def asn_caida(self, asn):
        """
        Read the 2015 CAIDA database and returns the classification for the given ASN
        input: asn : integer
        output {'source': SOURCE, 'type': TYPE}
        """
        with open(self.asncaida, 'r') as f:
            line = f.readline()
            while line != '':
                if line.startswith('#'):
                    line = f.readline()
                    continue
                data = line.split("|")
                if int(data[0]) == asn:
                    return {'source': data[1], 'type': data[2].strip()}
                line = f.readline()
        return {'source': '', 'type': 'Unknown'}
def asn_caida ( self , asn ) : with open ( self . asncaida , 'r' ) as f : line = f . readline ( ) while line != '' : if line . startswith ( '#' ) : line = f . readline ( ) continue data = line . split ( "|" ) if int ( data [ 0 ] ) == asn : return { 'source' : data [ 1 ] , 'type' : data [ 2 ] . strip ( ) } line = f . readline ( ) return { 'source' : '' , 'type' : 'Unknown' }