Getting Started with Python Wikipedia API


Getting Started with Python Wikipedia API

  • In this article, we will see how to use Python's Wikipedia API to fetch a variety of information from the Wikipedia website.And with Wikipedia being one of the largest and most popular sources for information on the Internet, this is a natural place to start.


  • In order to extract data from Wikipedia, we must first install the Python Wikipedia library, which wraps the official Wikipedia API. This can be done by entering the command below in your command prompt or terminal:

Source Code:

>>> import wikipedia  
>>> print(wikipedia.summary("Google", sentences = 5))






Post a Comment

Post a Comment (0)