Aquí tenéis el script un poco mejor hecho:
def search(peticion):
 google =  "https://www.google.com/?#q="+ peticion
 bing = "https://www.bing.com/search?q="+ peticion
 duckgo = "https://duckduckgo.com/?q="+ peticion
 list = [google,bing,duckgo]
 for item in list:
  webbrowser.open(item)
if __name__ == "__main__":
 print """ 
|-----| Bing, Google & DuckDuckGo |-----|
             |          Hacking          |     
 """ 
 while True:
  busqueda = raw_input("Copia tu Dork favorito: ")
  search(busqueda)
Ahora si que esta preparado para ser funcional y lo que es mas importante, me gusta a mi. 
Sed Buenos ;)

No hay comentarios:
Publicar un comentario