Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get wikipedia page with exact title #320

Open
RajS999 opened this issue Feb 7, 2023 · 1 comment
Open

Get wikipedia page with exact title #320

RajS999 opened this issue Feb 7, 2023 · 1 comment

Comments

@RajS999
Copy link

RajS999 commented Feb 7, 2023

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'>
@AdvaithGS
Copy link

AdvaithGS commented Feb 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants