title: How to solve Wikipedia API Page Error while reading in python?
body: <p>I am working on a document summarizer NLP project, so I wanted to extract Elon Musk's Bio from Wikipedia. I tried to extract it with the help of the Wikipedia library (API),</p>
  <p>I first tried with page title (i,e, Elon Musk)but it's giving me a page error <code>PageError: Page id &quot;e on musk&quot; does not match any pages. Try another id!</code> Did you noticed the page id it's showing <code>&quot;e on musk&quot;</code> then I tried with its page id number (i.e Q317521) which outputs me results about some plant <code>'Matthiola incana'</code></p>
  <p><a href="https://i.stack.imgur.com/JXcro.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JXcro.png" alt="ELon Musk Wikipedia page" /></a></p>
  <p>Here is my code</p>
  <pre class="lang-py prettyprint-override"><code>import wikipedia
  
  elon = wikipedia.page('Elon Musk').content
  elon
  # outputs
  PageError: Page id &quot;e on musk&quot; does not match any pages. Try another id!
  
  
  elon = wikipedia.page('Q317521').content
  elon
  # outputs (shorted)
  Matthiola incana is a species of flowering plant in the cabbage family Brassicaceae. Common names include Brompton stock,
  </code></pre>
  <p>I tried with Alan turning which is not working, also tried with Albert_Einstein which is showing weird output just like Elon Musk.</p>
  <p>However, it worked with Nikola Tesla, Michio Kaku, Narendra Modi etc, which shows that I am not doing it wrong.</p>