Advertisement
vinissh

Untitled

Nov 27th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. from googlesearch import search
  2. import webbrowser
  3.  
  4.  
  5. class Pesquisa:
  6.     def __init__(self,pesquisa,dbase):
  7.         self.pesquisa =  pesquisa
  8.         self.dbase = dbase
  9.  
  10. def pesquisasWeb():
  11.     sua_pesquisa = str(input('Digite sua busca aqui: '))
  12.     onde_buscar =  str(input('Onde devo buscar isso ? :'))
  13.     pesquisando = Pesquisa(sua_pesquisa,onde_buscar)
  14.     for resultado in search('"{0}" {1}'.format(sua_pesquisa,onde_buscar),stop=10):
  15.         br = webbrowser.open(resultado)
  16.  
  17. pesquisasWeb()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement