def extract(line): model = RawData(line) key = model.ip fields = list() fields.append(model.user_agent) Extractor.solid(key, fields, UAExtractor.fid)
def extract(line): model = RawData(line) key = model.ip fields = list() fields.append(model.placement_id) Extractor.solid(key, fields, PlacementExtractor.fid)
def extract(line): model = RawData(line) key = model.ip fields = list() # cookie fields.append(model.cookie) Extractor.solid(key, fields, CookieExtractor.fid)
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)
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)
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()