Wikipedia icon indicating copy to clipboard operation
Wikipedia copied to clipboard

A Pythonic wrapper for the Wikipedia API

Results 129 Wikipedia issues
Sort by recently updated
recently updated
newest added

The module does not support the Categorymembers API calls. Can we please add it? https://www.mediawiki.org/wiki/API:Categorymembers

My python project runs for a little while and sometime after running recursively a lot of times this error is occured

I have a python code that gets random article titles, which are received from `wikipedia.random()`. When I retrieve these articles from Wikipedia by title, very rarely (happens less than 1/1000th...

summary() and page() does not work in french, it seems there are not searching for the word we asked. ```py wikipedia.set_lang('fr') wikipedia.page('chat') Traceback (most recent call last): File "", line...

wikipedia.exceptions.WikipediaException: An unknown error occured: "The "srsearch" parameter must be set.". Please report it on GitHub! It is also showing different results like showing about gold instead of god and...

On pages without coordinates, such as person pages, trying to get the coordinates would result `KeyError: 'coordinates'`. I fixed this by changing the if clause into a try-except clause. That's...

subsection extract does not work to fix, in section method replace ` index = self.content.index(section) + len(section)` with ` title_index = self.content.index(section) #search section title` ` index = self.content.index('\n',title_index )...

Dark theme for Wikipedia websites

Is there a way to extract easily the information from an infobox, other than using `.html()` and BeautifulSoup? For instance, in the article about the city of [Barcelona](https://en.wikipedia.org/wiki/Barcelona), extracting the...

I tried to create a page with title EBay using following ``` s= search("EBay") print (s) ebay=page(title='EBay') print(ebay) ``` Error: ``` PageError Traceback (most recent call last) in () 4...