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 :

Get Discount on Top Educational Courses

Brand NameDiscount InformationCoupon Codes Link
Educative.io20% discount on Educative courses and plans
W3Schools20% discount on W3Schools courses
KodeKloud10% discount on KodeKloud courses and plans
GeeksforGeeks30% discount on GeeksforGeeks courses
Target Test Prep20% discount on Target Test Prep
Coding Ninjas₹5000 discount on Coding Ninjas courses
Skillshare40% discount on Skillshare
DataCamp50% discount on DataCamp
365 Data Science57% discount on 365 Data Science Plans
Get SmarterFlat 20% discount on Get Smarter courses
SmartKeedaFlat 40% discount on SmartKeeda courses
StackSocial20% discount on StackSocial courses
				
					# 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

URL Shortener Using Python Django Introduction: Long URLs can be shortened into short, shareable links with the help of the URL Shortener …

User Authentication System Using Python Django Introduction: The implementation of safe and adaptable user authentication in Django is the main goal of …

The E-Learning System using Java with a Graphical User Interface (GUI) Introduction The E-Learning System is developed using Java (with a Graphical …

Weather App Using Python Django Introduction: When a user enters the name of a city, the Weather App retrieves current weather information. …

Quiz App Using Python Django Introduction: Users can take quizzes in a variety of subjects, see their results, and monitor their progress …

resume screener in python using python introduction The hiring process often begins with reviewing numerous resumes to filter out the most suitable …