This module is used to download metadata informations from cpress.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 URL 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 URL. |
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 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 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. |
Go thru table data in html_chunk and try to locate content of the neighbor cell of the cell containing what.
Returns: | str – Table data or None. |
---|
Parse EAN.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – EAN as string or None if not found. |
Parse date.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – date as string or None if not found. |
Parse format.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Format as string or None if not found. |
Parse description of the book.
Parameters: | html_chunk (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | str/None – Description as string 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 cpress.cz.
Returns: | list – List of Publication objects. |
---|