MCPcopy Index your code
hub / github.com/geekcomputers/Python / google_search

Function google_search

VoiceAssistant/Project_Basic_struct/websiteWork.py:13–26  ·  view source on GitHub ↗

[Goes to google and searches the website asked by the user]

()

Source from the content-addressed store, hash-verified

11
12
13def google_search():
14 """[Goes to google and searches the website asked by the user]"""
15 google_search_link = "https://www.google.co.in/search?q="
16 google_search = "What do you want me to search on Google? "
17 print(google_search)
18 speak(google_search)
19
20 query = hear()
21
22 if query != "None":
23 webbrowser.open(google_search_link + query)
24 elif query == "None":
25 print("I could'nt understand what you just said!")
26 speak("I could'nt understand what you just said!")
27
28
29def wiki_search():

Callers 1

mainFunction · 0.85

Calls 2

speakFunction · 0.90
hearFunction · 0.90

Tested by

no test coverage detected