From 15836a94bf3d6898bbe6dc48b80b9aed0e1e94c3 Mon Sep 17 00:00:00 2001 From: Kunal Patil Date: Sun, 9 Oct 2022 09:14:32 +0530 Subject: [PATCH 1/3] commit message --- scripts/Getting_Wikipedia_Info/GetWikiInfo.py | 13 +++++++++++++ scripts/Getting_Wikipedia_Info/readme.md | 10 ++++++++++ scripts/Getting_Wikipedia_Info/requirements.txt | 1 + 3 files changed, 24 insertions(+) create mode 100644 scripts/Getting_Wikipedia_Info/GetWikiInfo.py create mode 100644 scripts/Getting_Wikipedia_Info/readme.md create mode 100644 scripts/Getting_Wikipedia_Info/requirements.txt diff --git a/scripts/Getting_Wikipedia_Info/GetWikiInfo.py b/scripts/Getting_Wikipedia_Info/GetWikiInfo.py new file mode 100644 index 0000000..faa4902 --- /dev/null +++ b/scripts/Getting_Wikipedia_Info/GetWikiInfo.py @@ -0,0 +1,13 @@ +import wikipedia +import pyttsx3 +engine = pyttsx3.init('sapi5') +voices = engine.getProperty('voices') +engine.setProperty('voice', voices[0].id) +def speak(audio): + engine.say(audio) + engine.runAndWait() +query = input("What You Want To Ask ??") +results = wikipedia.summary(query, sentences=2) +speak("According to Wikipedia\n") +print(results) +speak(results) \ No newline at end of file diff --git a/scripts/Getting_Wikipedia_Info/readme.md b/scripts/Getting_Wikipedia_Info/readme.md new file mode 100644 index 0000000..3a44b0e --- /dev/null +++ b/scripts/Getting_Wikipedia_Info/readme.md @@ -0,0 +1,10 @@ + +# Getting Wikipedia Information +super easy and simple python script to get wikipedia information + +## Installation +Install the dependencies + +```sh +pip install -r requirements.txt +``` \ No newline at end of file diff --git a/scripts/Getting_Wikipedia_Info/requirements.txt b/scripts/Getting_Wikipedia_Info/requirements.txt new file mode 100644 index 0000000..5c3c753 --- /dev/null +++ b/scripts/Getting_Wikipedia_Info/requirements.txt @@ -0,0 +1 @@ +pyttsx3==2.90 \ No newline at end of file From 3862e859d04028af29d818585270d96cbd608f41 Mon Sep 17 00:00:00 2001 From: Kunal Patil Date: Sun, 9 Oct 2022 09:30:22 +0530 Subject: [PATCH 2/3] commit message --- scripts/Clean_the_folder/Clean.py | 11 +++++++++++ scripts/Clean_the_folder/readme.md | 4 ++++ scripts/Clean_the_folder/requirements.txt | 1 + 3 files changed, 16 insertions(+) create mode 100644 scripts/Clean_the_folder/Clean.py create mode 100644 scripts/Clean_the_folder/readme.md create mode 100644 scripts/Clean_the_folder/requirements.txt diff --git a/scripts/Clean_the_folder/Clean.py b/scripts/Clean_the_folder/Clean.py new file mode 100644 index 0000000..e273411 --- /dev/null +++ b/scripts/Clean_the_folder/Clean.py @@ -0,0 +1,11 @@ +import os +folder_location = 'C:\\Users\\user\\Downloads\\demo' + +os.chdir(folder_location) +list_of_files = os.listdir() + +images = [content for content in list_of_files if content.endswith(('.png','.jpg','.jpeg'))] + +for index, image in enumerate(images): + os.rename(image,f'{index}.png') + diff --git a/scripts/Clean_the_folder/readme.md b/scripts/Clean_the_folder/readme.md new file mode 100644 index 0000000..5f5db2f --- /dev/null +++ b/scripts/Clean_the_folder/readme.md @@ -0,0 +1,4 @@ +# Cleaning Download Folder +One of the messiest things in this world is the download folder of a developer. When writing a blog, working on a project, something similar we just download images and save them with ugly and funny names like asdfg.jpg. + +This python script will clean your download folder by renaming and deleting certain files based on some condition. \ No newline at end of file diff --git a/scripts/Clean_the_folder/requirements.txt b/scripts/Clean_the_folder/requirements.txt new file mode 100644 index 0000000..4f3cbbf --- /dev/null +++ b/scripts/Clean_the_folder/requirements.txt @@ -0,0 +1 @@ +# Dont forget to import OS \ No newline at end of file From 6019f5a2d0c6d03c80691e5457f64cdd9c04cdb9 Mon Sep 17 00:00:00 2001 From: Kunal Patil Date: Sun, 9 Oct 2022 11:31:09 +0530 Subject: [PATCH 3/3] Commit --- scripts/Clean_the_folder/Clean.py | 11 ----------- scripts/Clean_the_folder/readme.md | 4 ---- scripts/Clean_the_folder/requirements.txt | 1 - 3 files changed, 16 deletions(-) delete mode 100644 scripts/Clean_the_folder/Clean.py delete mode 100644 scripts/Clean_the_folder/readme.md delete mode 100644 scripts/Clean_the_folder/requirements.txt diff --git a/scripts/Clean_the_folder/Clean.py b/scripts/Clean_the_folder/Clean.py deleted file mode 100644 index e273411..0000000 --- a/scripts/Clean_the_folder/Clean.py +++ /dev/null @@ -1,11 +0,0 @@ -import os -folder_location = 'C:\\Users\\user\\Downloads\\demo' - -os.chdir(folder_location) -list_of_files = os.listdir() - -images = [content for content in list_of_files if content.endswith(('.png','.jpg','.jpeg'))] - -for index, image in enumerate(images): - os.rename(image,f'{index}.png') - diff --git a/scripts/Clean_the_folder/readme.md b/scripts/Clean_the_folder/readme.md deleted file mode 100644 index 5f5db2f..0000000 --- a/scripts/Clean_the_folder/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -# Cleaning Download Folder -One of the messiest things in this world is the download folder of a developer. When writing a blog, working on a project, something similar we just download images and save them with ugly and funny names like asdfg.jpg. - -This python script will clean your download folder by renaming and deleting certain files based on some condition. \ No newline at end of file diff --git a/scripts/Clean_the_folder/requirements.txt b/scripts/Clean_the_folder/requirements.txt deleted file mode 100644 index 4f3cbbf..0000000 --- a/scripts/Clean_the_folder/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -# Dont forget to import OS \ No newline at end of file