from bs4 import BeautifulSoup


def generate_soup(html, parser):
    """Return BeautifulSoup object

    Args:
        html (str): text response from website requested
        parser (str): parser used by BeautifulSoup

    Returns:
        BeautifulSoup: Navigable BeautifulSoup object
    """    
    return BeautifulSoup(html, parser)