Open grossmanm opened 2 years ago
I had this error as well. Seems to be an error in the API, when I ran this, it returned that "new york sity" is the actual title for the page. Which is ridiculous, here is my code though:
import wikipedia
suggestion = wikipedia.suggest("New York City")
sity = wikipedia.page(suggestion) print(sity.url)
Whenever I run the line
wikipedia.page("New York City")
The api returns an error indicating there is no page for 'new york sity'. The error occurs on line 270 of wikipedia.pyresults, suggestion = search(title, results=1, suggestion=True)
where title='new york city' resolves to 'new york sity' for whatever reason