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
Build a Quiz Game Using HTML CSS and JavaScript Introduction Hello coders, you might have played various games, but were you aware …
Emoji Catcher Game Using HTML CSS and JavaScript Introduction Hello Coders, Welcome to another new blog. In this article we’ve made a …
Typing Challenge Using HTML CSS and JavaScript Introduction Hello friends, all you developer friends are welcome to our new project. If you …
Breakout Game Using HTML CSS and JavaScript With Source Code Introduction Hello friends, welcome to today’s new blog post. All of you …
Digital and Analog Clock using HTML CSS and JavaScript Introduction : This project is a digital clock and stopwatch system, which allows …
Coffee Shop Website using HTML, CSS & JavaScript Introduction : This project is a website for coffee house business. It uses HTML …