title: WIkipedia API get text under headers
body: <p>I can scripe a wikipedia usein wikipedia api</p>
  <pre><code>import wikipedia
  import re
  page = wikipedia.page(&quot;Albert Einstein&quot;)
  text = page.content
  regex_result = re.findall(&quot;==\s(.+?)\s==&quot;, text)
  print(regex_result)
  </code></pre>
  <p>and I can from every element in a regex_result(Wikipedia headers ) get a text bellow and append it to another list. I dug the internet and I do not know how to do that with some function in Wikipedia API.
  Second chance to get it in get a text and with some module extract a text between headers more here: <a href="https://stackoverflow.com/questions/71310135/find-a-some-text-in-string-bettwen-some-specific-characters/71310829#71310829">find a some text in string bettwen some specific characters</a></p>
  <p>I have tried this:</p>
  <pre><code>l = 0
  for n in regex_result:
      try:
          regal = re.findall(f&quot;==\s{regex_result[l]}\s==(.+?)\s=={regex_result[l+1]}\s==&quot;, text)
          l+=2
      except Exception:
          continue
  </code></pre>
  <p>But I am not working:
  output is only []</p>