def search_by_keyword(self, kw, page): count = current_app.config['PAGE_COUNT'] start = self.calculate_starts(page, count) url = self.keyword_url.format(kw, start, count) http = HTTP() data = http.get(url) self.__fill_collection(data)
def search_by_isbn(self, isbn): url = self.isbn_url.format(isbn) print(url) http = HTTP() data = http.get(url) print(data) self.__fill_single(data)