from bs4 import BeautifulSoup


def getHTMLParts(content, part):
    """
    Return a list of the specified parts of the given HTML content

    Parameters
    ----------
    content : HTML string
        HTML string.
    part : string
        name of HTML tag to search for e.g. 'a'

    Returns
    -------
    allParts : list 
        List of strings
    """
    soup = BeautifulSoup(content, 'html.parser')
    allParts=soup.find_all(part)
    return allParts