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:
Nissaar 2020-03-19 16:21:02 +04:00 committed by GitHub
parent b2139ce2e9
commit d7ca9f5ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 0 deletions

View File

@ -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)|

View 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
```

View 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)

View File

@ -0,0 +1 @@
Wikipedia Library (https://pypi.org/project/wikipedia/)