def isbnSearch(self, isbn): url = self.isbn_url.format(isbn) result = HTTP.get(url) self.__fill_single(result)
def keySearch(self, keyword, page=1): url = self.keyword_url.format(keyword, current_app.config['PER_PAGE'], self.calculate_start(page)) result = HTTP.get(url) self.__fill_collection(result)
def search_by_keyword(cls, keyword, page=1): url = YuShuBook.keyword_url.format(keyword, current_app.config['PER_PAGE'], cls.calculate_start(page)) result = HTTP.get(url) return result
def search_by_isbn(cls, isbn): url = cls.isbn_url.format(isbn) # url = self.isbn_url.format(isbn) result = HTTP.get(url) return result
def search(self, src): result = HTTP.get(self.word_search_base_url.format(src)) if result: self._fill(src, result)
def search_by_key(self, key, page=1): url = self.keyword_url.format(key, current_app.config['PER_PAGE'], self.calculate_start(page)) result = HTTP.get(url) self.__fill_multiple(result)
def search_by_keyword(cls,keyword, page=1): url = cls.keyword_url.format(keyword, current_app.config['PER_PAGE'], cls.begin_data(page)) result = HTTP.get(url) return result