We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f0f3f6 + 34cb775 commit 12b2935Copy full SHA for 12b2935
Websites_Automation/websites.py
@@ -1,6 +1,7 @@
1
import speech_recognition as sr
2
import webbrowser
3
4
+
5
def takeCommand():
6
recognizer = sr.Recognizer()
7
@@ -20,17 +21,20 @@ def takeCommand():
20
21
print(f"\nError occurred while requesting results: {e}\n")
22
return None
23
24
25
def openWebsite(website):
26
website = website.replace("Open", "")
27
website = website.replace(" ", "")
28
url = f"https://www.{website}.com"
29
webbrowser.open(url)
30
31
32
def displayInstructions():
33
print('''\n\n1. Say "Open ${Website Name}" to open the Website.
34
2. Say "exit" to close the program.\n
35
''')
36
37
38
if __name__ == "__main__":
39
displayInstructions()
40
while True:
0 commit comments