Wikipedia icon indicating copy to clipboard operation
Wikipedia copied to clipboard

Get wikipedia page with exact title

Open RajS999 opened this issue 2 years ago • 1 comments

When I try to access page with title 'Ranchi', API returns page for 'Ranch':

>>> import wikipedia
>>> wikipedia.page('Ranchi')
<WikipediaPage 'Ranch'>

Is there any way to force API to return page for exact title passed?

Or should I be using wikipedia.WikipediaPage() instead of wikipedia.page()?

>>> wikipedia.WikipediaPage(title='Ranchi')
<WikipediaPage 'Ranchi'>

RajS999 avatar Feb 07 '23 21:02 RajS999

Set auto_suggest = False while calling wikipedia.page, .It returns page object according to the parameter provided #266

AdvaithGS avatar Feb 08 '23 12:02 AdvaithGS