def get_publications():
    """
    Get list of publication offered by ben.cz.

    Returns:
        list: List of :class:`structures.Publication` objects.
    """
    data = DOWNER.download(URL)
    dom = dhtmlparser.parseString(data)

    book_list = dom.find("div", {"class": "seznamKniha"})

    assert book_list, "Can't find <div> with class 'seznamKniha'!"

    books = []
    for html_chunk in book_list:
        a = html_chunk.find("a")

        assert a, "Can't find link to the details of the book!"

        if a[0].find("span", {"class": "ruzek pripravujeme"}):
            continue

        books.append(
            _process_book(a[0].params["href"])
        )

    return books
def get_publications ( ) : data = DOWNER . download ( URL ) dom = dhtmlparser . parseString ( data ) book_list = dom . find ( "div" , { "class" : "seznamKniha" } ) assert book_list , "Can't find <div> with class 'seznamKniha'!" books = [ ] for html_chunk in book_list : a = html_chunk . find ( "a" ) assert a , "Can't find link to the details of the book!" if a [ 0 ] . find ( "span" , { "class" : "ruzek pripravujeme" } ) : continue books . append ( _process_book ( a [ 0 ] . params [ "href" ] ) ) return books
Get list of publication offered by ben.cz.

    Returns:
        list: List of :class:`structures.Publication` objects.