Ejemplo n.º 1
0
 def __init__(self, proxies=None, auth=None):
     """
     Set up a browser-imitated slurper to slurp_raw Dogpile search results.
     :type proxies: dict
     :type auth: requests.auth.HTTPProxyAuth
     """
     Browser.__init__(self, proxies, auth)
Ejemplo n.º 2
0
Archivo: dogpile.py Proyecto: yz-/ut
 def __init__(self, proxies=None, auth=None):
     """
     Set up a browser-imitated slurper to slurp_raw Dogpile search results.
     :type proxies: dict
     :type auth: requests.auth.HTTPProxyAuth
     """
     Browser.__init__(self, proxies, auth)
Ejemplo n.º 3
0
 def __init__(self,
              host='localhost',
              port='8080',
              debug=True,
              print_requests=True):
     site = '%s:%s' % (
         host,
         port,
     )
     Browser.__init__(self,
                      site=site,
                      debug=debug,
                      print_requests=print_requests)
Ejemplo n.º 4
0
 def __init__(self, app_inst, store, search):
     Browser.__init__(self, app_inst, store, search=search)
     self._save = app.SaveRegistry()
     self.search_field = app.Edit(u"", search).bind(self, "search")
     urwid.connect_signal(self.search_field, "enter", self.do_search)
Ejemplo n.º 5
0
 def __init__(self, host='localhost', port='8080',debug=True,print_requests=True):
     site='%s:%s'%(host,port,)
     Browser.__init__(self,site=site,debug=debug,print_requests=print_requests)