示例#1
0
    def extract(line):
        model = RawData(line)
        key = model.ip
        fields = list()

        fields.append(model.user_agent)
        Extractor.solid(key, fields, UAExtractor.fid)
示例#2
0
    def extract(line):
        model = RawData(line)
        key = model.ip
        fields = list()

        fields.append(model.placement_id)
        Extractor.solid(key, fields, PlacementExtractor.fid)
示例#3
0
    def extract(line):
        model = RawData(line)
        key = model.ip
        fields = list()

        # cookie
        fields.append(model.cookie)
        Extractor.solid(key, fields, CookieExtractor.fid)
示例#4
0
    def extract(line):
        model = RawData(line)
        key = model.ip

        # SECOND_TAG
        fields = list()
        fields.append(Context.media_info_table[key][2])

        Extractor.solid(key, fields, TagExtractor.fid)
示例#5
0
    def extract(line):
        model = RawData(line)
        key = model.ip

        # DEVICE ID
        fields = list()
        fields.append(model.mobile_imei + model.mobile_idfa +
                      model.mobile_android_id + model.mobile_mac)

        Extractor.solid(key, fields, DevExtractor.fid)
示例#6
0
 def extract(self, line):
     model = RawData(line)
     row = [model.ip, model.timestamps]
     if os.path.exists(SecExtractor.file_name_temp):
         _file = open(SecExtractor.file_name_temp, 'a+')
         _file.writelines(json.dumps(row))
         _file.write('\n')
         _file.flush()
     else:
         _file = open(SecExtractor.file_name_temp, 'w')
         _file.writelines(json.dumps(row))
         _file.write('\n')
         _file.flush()