mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-23 20:11:07 +00:00
Wikipedia-Search (#87)
* Create pywikisearch.py * Create README.md * Update README.md * Update README.md * Update README.md * Update pywikisearch.py * Create requirements.txt (#1) Co-authored-by: Ayush Bhardwaj <classicayush@gmail.com>
This commit is contained in:
parent
b2139ce2e9
commit
d7ca9f5ab2
|
@ -71,6 +71,7 @@ So far, the following projects have been integrated to this repo:
|
|||
|[Find PhoneNumber in String](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/Find-PhoneNumber-in-String)|[Austin Zuniga](https://github.com/AustinZuniga)|
|
||||
|[IMDB TV Series Info Extractor](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/imdb_episode_ratings)|[Yash Raj Sarrof](https://github.com/yashYRS) |
|
||||
|[Yoda-speak Translator](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/speak_like_yoda)|[sonniki](https://github.com/sonniki) |
|
||||
|[Wikipedia-Search](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/Wikipedia-Search)|[Nissaar](https://github.com/Nissaar) |
|
||||
|[Instagram Video Downloader](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/insta_video_downloader)|[Shobhit Bhosure](https://github.com/shobhit99) |
|
||||
|[Medium Article Downloader](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/medium_article_downloader)|[coolsonu39](https://github.com/coolsonu39)|
|
||||
|[Face Recognition](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/image_recognition)|[LOKESH KHURANA](https://github.com/theluvvkhurana)|
|
||||
|
|
22
Wikipedia-Search/README.md
Normal file
22
Wikipedia-Search/README.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Wikipedia Search
|
||||
This app takes input from the user and searches Wikipedia
|
||||
|
||||
# Requirements
|
||||
|
||||
Python 3 and higher or Python 2 and higher
|
||||
|
||||
Wikipedia Library (https://pypi.org/project/wikipedia/)
|
||||
|
||||
# Usage
|
||||
|
||||
For Windows users:
|
||||
|
||||
```bash
|
||||
$ python pywikisearch.py
|
||||
```
|
||||
|
||||
For Mac/Linux/Unix users:
|
||||
|
||||
```bash
|
||||
$ ./pywikisearch.py
|
||||
```
|
8
Wikipedia-Search/pywikisearch.py
Normal file
8
Wikipedia-Search/pywikisearch.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import wikipedia
|
||||
|
||||
print("Welcome to the app which find an answer to your question from wikipedia")
|
||||
|
||||
while True:
|
||||
ques = input("What would you like to ask Wikipedia?")
|
||||
wikipedia.set_lang("en") #change "en" to convenient language for example wikipedia.set_lang("es") will set the language to spanish
|
||||
print wikipedia.summary(ques, sentences=3)
|
1
Wikipedia-Search/requirements.txt
Normal file
1
Wikipedia-Search/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
|||
Wikipedia Library (https://pypi.org/project/wikipedia/)
|
Loading…
Reference in New Issue
Block a user