Exemplo n.º 1
0
    elif str == "how are you":
        print("I'm good sir. How are you?\n")
        say("I'm good sir. How are you?")

    elif str == "great" or str == "nice" or str == "fine" or str == "good" or str == "ok" or str == "okay" or str == "alright" or str == "cool":
        print("sir\n")
        say("sir")

    elif str == guest + str[13:]:  #say hello to ------
        print("hello " + str[13:] + "\n")
        say("hello " + str[13:])

    elif str == google + str[13:]:
        say("here we go")
        gsearch.search(str[13:])

    elif str == search + str[11:]:
        say("I'm on it sir")
        gsearch.search(str[11:])

    elif str == "open calculator" or str == "open the calculator" or str == "launch calculator":
        say("opening calculator")
        myapps.calc()

    elif str == "open Notepad" or str == "launch Notepad":
        say("opening notepad")
        myapps.notepad()

    elif str == "open MS Word" or str == "launch MS Word":
        say("yes sir")
Exemplo n.º 2
0
def search_google(input):
    a, b, loc = gsearch.search(input)
    if a and b:
        return a + ' is ' + b + '.', None
    elif loc:
        return 'Let me search for ' + food, "gobject.timeout_add(500, os.system, 'python /opt/modrana/modrana.py --address-search " + food + "')"
Exemplo n.º 3
0
def search_google(input):
	a, b, loc = gsearch.search(input)
	if a and b:
		return a + ' is '+b+'.', None
	elif loc:
		return 'Let me search for '+food, "gobject.timeout_add(500, os.system, 'python /opt/modrana/modrana.py --address-search "+food+"')"
Exemplo n.º 4
0
from gsearch import search



movie = input('Enter name of movie : ')

imdb_link = search(movie + ' imdb')
print(imdb_link)

rotten_link = search(movie + ' rottentomatoes')
print(rotten_link)