Esempio n. 1
0
 def isbnSearch(self, isbn):
     url = self.isbn_url.format(isbn)
     result = HTTP.get(url)
     self.__fill_single(result)
Esempio n. 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)
Esempio n. 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
Esempio n. 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
Esempio n. 5
0
 def search(self, src):
   result = HTTP.get(self.word_search_base_url.format(src))
   if result:
     self._fill(src, result)
Esempio n. 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)
Esempio n. 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