This module is used to download metadata from grada.cz.
Parse title from alternative location if not found where it should be.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str – Book’s title. |
Parse title/name of the book and URL of the book.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | tuple – (title, url), both as strings. |
Parse subtitle of the book.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Subtitle or None if subtitle wasn’t found. |
Parse authors of the book.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | list – List of structures.Author objects. Blank if no author found. |
Parse description of the book.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Details as string with currency or None if not found. |
Parse format, number of pages and ISBN.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | tuple – (format, pages, isbn), all as string. |
Parse price of the book.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Price as string with currency or None if not found. |
Parse available informations about book from the book details page.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | obj – structures.Publication instance with book details. |
Get list of publication offered by grada.cz.
Returns: | list – List of Publication objects. |
---|