

@property
def sections(self):
    '\n    List of section titles from the table of contents on the page.\n    '
    if (not getattr(self, '_sections', False)):
        query_params = {
            'action': 'parse',
            'prop': 'sections',
        }
        query_params.update(self.__title_query_param)
        request = _wiki_request(query_params)
        self._sections = [section['line'] for section in request['parse']['sections']]
    return self._sections

dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/wikipedia.py WikipediaPage.sections/original