from bs4 import BeautifulSoup


def to_soup(html_source, parser='html.parser'):
    """Convert HTML source (text) to soup object.

    parser can be:
    * html.parser (Python's html.parser)
    * lxml (lxml's HTML parser)  -- FASTEST
    * xml (lxml's XML parser)
    * html5lib
    """
    return BeautifulSoup(html_source, parser)