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

def __init__(self, data_object, info):

    self.parsed_data = None
    self.function_sections = []
    self.method_sections = []
    self.intro_text = ''
    self.title = ''
    self.info = info
    self.file_being_used = data_object.get_file()
    soup_data = BeautifulSoup(data_object.get_raw_data(), 'html.parser')
    sections = soup_data.find_all('div', {'class': 'section'})
    for section in sections:
        functions = section.find_all('dl', {'class': 'function'})
        if functions:
            self.function_sections.extend(functions)
        methods = section.find_all('dl', {'class': 'method'})
        if methods:
            self.method_sections.extend(methods)
    intro = []
    hr = soup_data.find_all('hr', {'class': 'docutils'})
    if hr:
        first_paragraph_after_hr = soup_data.hr.find_next('p')
        intro.append(first_paragraph_after_hr)
        second_paragraph_after_hr = first_paragraph_after_hr.find_next('p')
        intro.append(second_paragraph_after_hr)
    for p in intro:
        self.intro_text += p.text.replace('        ', '    ').replace('\n', '    ').replace('\\n', '\\\\n')
    module_title = soup_data.find('a', {'class': 'reference    internal'})
    if module_title:
        self.title = module_title.text
