diff --git a/README.md b/README.md index 9ec9134..a53f038 100644 --- a/README.md +++ b/README.md @@ -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)| diff --git a/Wikipedia-Search/README.md b/Wikipedia-Search/README.md new file mode 100644 index 0000000..f901574 --- /dev/null +++ b/Wikipedia-Search/README.md @@ -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 +``` diff --git a/Wikipedia-Search/pywikisearch.py b/Wikipedia-Search/pywikisearch.py new file mode 100644 index 0000000..46a11dd --- /dev/null +++ b/Wikipedia-Search/pywikisearch.py @@ -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) diff --git a/Wikipedia-Search/requirements.txt b/Wikipedia-Search/requirements.txt new file mode 100644 index 0000000..66c1286 --- /dev/null +++ b/Wikipedia-Search/requirements.txt @@ -0,0 +1 @@ +Wikipedia Library (https://pypi.org/project/wikipedia/)