Пример #1
0
 def isbnSearch(self, isbn):
     url = self.isbn_url.format(isbn)
     result = HTTP.get(url)
     self.__fill_single(result)
Пример #2
0
 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)
Пример #3
0
 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
Пример #4
0
 def search_by_isbn(cls, isbn):
     url = cls.isbn_url.format(isbn)
     # url = self.isbn_url.format(isbn)
     result = HTTP.get(url)
     return result
Пример #5
0
 def search(self, src):
   result = HTTP.get(self.word_search_base_url.format(src))
   if result:
     self._fill(src, result)
Пример #6
0
 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)
Пример #7
0
 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