def get_title(soup):
    """Returns the title from the given soup markup"""
    title = '[no title]'
    if soup.html is not None and soup.html.title is not None:
        title = soup.html.title.text
    return title