def clean_side_panel(sidepanel):
    """
    Cleans the SidePanel data and stores it in a dict.

    Parameter:
        sidepanel: html-sidepanel extracted using bs4
    Returns:
        data: dict of extracted data
    """

    data = dict()
    for x in sidepanel:
        x = x.text.strip().replace('\n', '')
        index = x.find(':')
        if index == -1:
            continue
        y, x = x[:index], x[index+1:].strip()
        data[y] = x
    return data