code: def get_text(self, title):
          
          r = requests.get(self.api,
                           params={'action': 'parse', 'page': title, 'format': 'json'},
                           headers=self.header)
          jsd = r.json()
          return jsd['parse']['text']['*']
docs: This will grab the html content of the chapter given by url. Technically you can use this to get the content of other pages too.
  
          :param title: Title for the page you want the content of
          :return: a string containing the html content