def extract_data(page_data):
    """
    extract file data from page json
    :param page_data: page data in json
    :return: extracted data in dic
    """
    extracted_data = {}
    # loop through all cid in this page
    for file in page_data['hits']:
        cid = file['hash']
        first_seen = file['first-seen']
        score = file['score']
        file_type = file['mimetype']
        file_size = file['size']
        file_data = {'first-seen': first_seen, 'score': score, 'size': file_size, 'mimetype': file_type}
        extracted_data[cid] = file_data

    return extracted_data