def get_page_text(soup):
    """Return all paragraph text of a webpage in a single string.
    """
    if soup is None:
        return ''
    paragraphs = [para.text for para in soup.select('p')]
    text = '\n'.join(paragraphs)
    return text