def parse_channal_response(channel=dict()):
    """
    Parse channel dict to extract key metadata, including:
    id, title, description, viewCount, videoCount, subscriberCount
    :param channel: a dictionary containing all metadata of a channel
    :return:
    """

    result = {}

    result['id'] = channel['id']
    result['title'] = channel['snippet']['title']
    result['description'] = channel['snippet']['description']
    result['publishedAt'] = channel['snippet']['publishedAt']

    result['viewCount'] = channel['statistics']['viewCount']
    result['videoCount'] = channel['statistics']['videoCount']
    result['subscriberCount'] = channel['statistics']['subscriberCount']

    result['keywords'] = channel['brandingSettings']['channel']['keywords']
    result['country'] = channel['brandingSettings']['channel']['country']
    return result