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)
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)