'Given raw data, get the relevant sections
Args:
raw_data: HTML data'

def __init__(self, data_object, titles):

    self.titles = titles
    self.parsed_data = None
    self.topic_sections = []
    self.file_being_used = data_object.get_file()
    self.soup_data = BeautifulSoup(data_object.get_raw_data(), 'html.parser')
    table_of_contents = self.soup_data.find(class_='maruku_toc')
    sections = table_of_contents.find_all('li')
    for section in sections:
        section_id = section.find('a')
        section_id = section_id['href']
        heading = self.soup_data.find(id=section_id[1:])
        self.topic_sections.append(heading)
