Module for parsing informations from zonerpress.cz.
Try to guess how much pages are in book listing.
Parameters: | dom (obj) – HTMLElement container of the page with book list. |
---|---|
Returns: | int – Number of pages for given category. |
Parse links to the details about publications from page with book list.
Parameters: | dom (obj) – HTMLElement container of the page with book list. |
---|---|
Returns: | list – List of strings / absolute links to book details. |
Go thru links to categories and return list to all publications in all given categories.
Parameters: | links (list) – List of strings (absolute links to categories). |
---|---|
Returns: | list – List of strings / absolute links to book details. |
Call .getContent() method of the el and strip whitespaces. Return None if content is -.
Parameters: | el (obj) – HTMLElement instance. |
---|---|
Returns: | str/None – Clean string. |
Parse informations about authors of the book.
Parameters: | dom (obj) – HTMLElement containing slice of the page with details. |
---|---|
Returns: | list – List of Author objects. Blank if no author found. |
Download and parse available informations about book from the publishers webpages.
Parameters: | link (str) – URL of the book at the publishers webpages. |
---|---|
Returns: | obj – Publication instance with book details. |