예제 #1
0
 def get(self, uri, provider=None):
     """Returns the collection file of the requested URI"""
     if provider is None:
         provider = UrlProvider(uri)
     html = provider.get('')
     return self.file_filter(html)
예제 #2
0
 def search(self, query, provider=None):
     """Searches results that match the requested query"""
     if provider is None:
         provider = UrlProvider(self.search_uri())
     html = provider.get(query)
     return self.search_filter(html)