Wikipedia search using Python with Source Code

Introduction :

Wikipedia is a Python library that makes it easy to access and parse data from Wikipedia. Python have this library for to the  easy access to the wikipedia  and  gather information from wikipedia after receiving information from various sources. this term is called as Data Scraping.

Wikipedia is a Open Source, multilingual free online encyclopedia written and maintained by a community of volunteer. Wikipedia is the largest and most-read reference work in history.

Python Provides Wikipedia module we can also called it an Api of wikipedia to gather data from the wikipedia pages over internet. for using the wikipedia module in the system we have to install it firstly. then we can import it on python file.

Installation of wikipedia module :

To install Wikipedia, simply run on your terminal :

$ pip install wikipedia

Source Code :

				
					# Importing Wikipedia module
# To install pip install wikipedia
import wikipedia  as wiki

# Setting language here hindi is set
wiki.set_lang("hi")  

# Printing the summary from wikipedia
print(wiki.summary("Python"))  
				
			

Output:

Find More Projects

Resume Builder Application using Java With Source Code Graphical User Interface [GUI] Introduction: The Resume Builder Application is a powerful and user-friendly …

Encryption Tool using java with complete source Code GUI Introduction: The Encryption Tool is a Java-based GUI application designed to help users …

Movie Ticket Booking System using Java With Source Code Graphical User Interface [GUI] Introduction: The Movie Ticket Booking System is a Java …

Video Call Website Using HTML, CSS, and JavaScript (Source Code) Introduction Hello friends, welcome to today’s new blog post. Today we have …

promise day using html CSS and JavaScript Introduction Hello all my developers friends my name is Gautam and everyone is welcome to …

Age Calculator Using HTML, CSS, and JavaScript Introduction Hello friends, my name is Gautam and you are all welcome to today’s new …