def books(self): logger.debug( f'Finding all books in the page using \'{BookPageLocators.BOOK}\'...' ) locator = BookPageLocators.BOOK book_tags = self.soup.select(locator) return [BookParser(e) for e in book_tags]
def books(self): logger.debug( f'Finding all books in the page using {AllBooksPageLocators.BOOKS}.' ) return [ BookParser(e) for e in self.soup.select(AllBooksPageLocators.BOOKS) ]
def books(self): logger.debug( f'Finding all books in the page using `{AllBooksPageLocators.BOOKS}`.' ) return [ BookParser(e) for e in self.soup.select(AllBooksPageLocators.BOOKS) ] # selects every instance of BOOKS
def books(self) -> List[BookParser]: """Returns the books on the books index page.""" logger.debug(f"Finding all books in the page using" + f"`{AllBooksPageLocators.BOOKS}`.") return [ BookParser(e) for e in self.soup.select(AllBooksPageLocators.BOOKS) ]
def books(self): locator=AllBookPageLocators.Books list_of_books=self.soup.select(locator) return [BookParser(item) for item in list_of_books]
def books(self): return [ BookParser(e) for e in self.soup.select(BooksPageLocators.BOOKS) ]
def books(self): return [BookParser(e) for e in self.soup.select(Locators.BOOK_LOCATOR)]
def books(self): logger.debug(f'finding all book in page {AllBooksPageLocators.BOOKS}') return [ BookParser(e) for e in self.soup.select(AllBooksPageLocators.BOOKS) ]
def _get_books(self): selector = BooksPageSelectors.BOOKS book_elements = self.page.select(selector) self._books = [BookParser(book) for book in book_elements] self.logger.info(f"Found {len(self._books)} books on page.") return self._books
def books(self): return [ BookParser(e) for e in self.soup.select(AllBooksLocators.BOOKS_LOCATORS) ]
def books(self): locator = ALlPageLocator.ALL_PAGE_LOCATOR books_tag = self.soup.select(locator) return [BookParser(e) for e in books_tag]