def extract_fields(data, fields_names):
    """
    Return requested data fields using data generated by
    cve-search' api. Takes as input data, fields requested
    """
    return [{name: item.get(name) for name in fields_names}
            for item in data]