>>> p = wikipedia.page(title="Ataturk")
>>> p.sections
[]
Turns search keys into awful strings such as Soros to sorts, Adolf hitler to -hitler
>>> wikipedia.page(title="George Soros")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/owo/.local/lib/python3.7/site-packages/wikipedia/wikipedia.py", line 276, in page
return WikipediaPage(title, redirect=redirect, preload=preload)
File "/home/owo/.local/lib/python3.7/site-packages/wikipedia/wikipedia.py", line 299, in __init__
self.__load(redirect=redirect, preload=preload)
File "/home/owo/.local/lib/python3.7/site-packages/wikipedia/wikipedia.py", line 345, in __load
raise PageError(self.title)
wikipedia.exceptions.PageError: Page id "george sorts" does not match any pages. Try another id!
>>> p = wikipedia.page(title="Adolf hitler")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/owo/.local/lib/python3.7/site-packages/wikipedia/wikipedia.py", line 276, in page
return WikipediaPage(title, redirect=redirect, preload=preload)
File "/home/owo/.local/lib/python3.7/site-packages/wikipedia/wikipedia.py", line 299, in __init__
self.__load(redirect=redirect, preload=preload)
File "/home/owo/.local/lib/python3.7/site-packages/wikipedia/wikipedia.py", line 345, in __load
raise PageError(self.title)
wikipedia.exceptions.PageError: Page id "adolf -hitler" does not match any pages. Try another id!
>>>
wikipedia.page object's sections always return empty list.
Turns search keys into awful strings such as Soros to sorts, Adolf hitler to -hitler