Wikipedia search using Python

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

 

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

Hostel Management System Using Python With Source Code by using Python Graphical User Interface GUI Introduction: Managing a hostel efficiently can be …

Contra Game Using Python with source code using Pygame Introduction: Remember the super fun Contra game where you fight aliens and jump …

Restaurant Billing Management System Using Python with Tkinter (Graphical User Interface) Introduction: In the bustling world of restaurants, efficiency is paramount, especially …

Jungle Dash Game Using Python with source code with pygame module Introduction: Dive into the excitement of jungle adventures with our new …

Building a Tetris Game with Python with source code Introduction: Welcome to the world of Tetris, where falling blocks meet strategic maneuvers …

Super Mario Game Using Python with source code Introduction: Remember playing Super Mario as a kid? It’s that classic game where you …

All Coding Handwritten Notes

Browse Handwritten Notes