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

"(" or ")" in string while using wikipedia.page(...) #214

Open
Harshal96 opened this issue Sep 22, 2019 · 0 comments

Comments

@Harshal96
Copy link

commented Sep 22, 2019

The code:

wikipedia.page("Oil_pump_(internal_combustion_engine)").content

gives me an error:

wikipedia.exceptions.PageError: Page id "oil_pump_ internal combustion engine" does not match any pages. Try another id!

But when I remove the brackets from the search string, it works as expected. As I can also see, in the error message, the brackets have disappeared.

In reality, the URL is: https://en.wikipedia.org/wiki/Oil_pump_(internal_combustion_engine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.