Open hobson opened 2 years ago
For "Creativity" the suggestion is "creatity" (but not sure why)
The error seems to stem from here.
Someone should just make a PR that changes that priority.
Its right here: https://github.com/goldsmith/Wikipedia/blob/1554943e8ab463cef5e93081def48fafbdef324e/wikipedia/wikipedia.py#L272
if auto_suggest:
results, suggestion = search(title, results=1, suggestion=True)
try:
title = suggestion or results[0]
except IndexError:
# if there is no suggestion or search results, the page doesn't exist
raise PageError(title)
python 3.7.9
Some pages can't be found, even if you use the exact title currently on Wikipedia for a popular page or use the
.suggest
ed article title:Lowercasing, etc. doesn't help, but adding the "(religion)" qualifier does, unless you're not looking for the religion page. Installing with conda or pip gives the same behavior.