def __init__(self, text):
    self.soup = BeautifulSoup(text, 'html.parser')
    self.soup_ptr = self.soup.find('div', class_='toc')
def __init__(self, text):
    self.soup = BeautifulSoup(text, 'html.parser')
    self.soup_ptr = self.soup.find('div', class_='toc')