Advertisement
jonay

browser search python

Nov 24th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. #buscador....
  2. import webbrowser
  3. #importa la libreria webbrowser
  4.  
  5. def search(tu_busqueda):
  6. #funciona con el argumento tu_busqueda
  7.     google =  "www.google.com/?#q="+tu_busqueda
  8. #la variable google llama a tu_busqueda
  9.     bing = "www.bing.com/search?q="+tu_busqueda
  10. #lo mismo
  11.     webbrowser.open(google)
  12. #abre la url indiciada usando open
  13.     webbrowser.open(bing)
  14. #lo mismo
  15.  
  16.  
  17. busqueda = input("Copia tu Dork favorito: ")
  18. #variable de entrada
  19. search(busqueda)
  20. #cierra def llamando a busqueda,luego el def recibe dicha informacion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement