This module is used to download last 100 books published by ben.cz.
Base url of the eshop.
Return last <td> found in el DOM.
Parameters: | el (obj) – dhtmlparser.HTMLElement instance. |
---|---|
Returns: | obj – HTMLElement instance if found, or None if there are no <td> tags. |
Get <tr> tag with given ID and return content of the last <td> tag from <tr> root.
Parameters: |
|
---|---|
Returns: | str – Content of the last <td> as strign. |
Parse title/name of the book.
Parameters: |
|
---|---|
Returns: | str – Book’s title. |
Raises: | AssertionError – If title not found. |
Parse authors of the book.
Parameters: | details (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | list – List of structures.Author objects. Blank if no author found. |
Parse publisher of the book.
Parameters: | details (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Publisher’s name as string or None if not found. |
Parse price of the book.
Parameters: | details (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Price as string with currency or None if not found. |
Parse number of pages and binding of the book.
Parameters: | details (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | (pages, binding) – Tuple with two string or two None. |
Parse ISBN and EAN.
Parameters: | details (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | (ISBN, EAN) – Tuple with two string or two None. |
Parse edition (vydání) of the book.
Parameters: | details (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Edition as string with currency or None if not found. |
Parse description of the book.
Parameters: | details (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Details as string with currency or None if not found. |
Parse available informations about book from the book details page.
Parameters: | book_url (str) – Absolute URL of the book. |
---|---|
Returns: | obj – structures.Publication instance with book details. |