

@property
def summary(self):
    '\n    Plain text summary of the page.\n    '
    if (not getattr(self, '_summary', False)):
        query_params = {
            'prop': 'extracts',
            'explaintext': '',
            'exintro': '',
        }
        if (not (getattr(self, 'title', None) is None)):
            query_params['titles'] = self.title
        else:
            query_params['pageids'] = self.pageid
        request = _wiki_request(query_params)
        self._summary = request['query']['pages'][self.pageid]['extract']
    return self._summary

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