def _parse(tag):
    """
    Used by the BeautifulSoup parser to get the wanted tags
    """
    # Return if it's the title of the PLL Alg
    if tag.has_attr('id'):
        return '_Permutation' in tag['id']
    # Return if it's an actual alg which are a tags with the following classes
    elif tag.name == 'a' and tag.has_attr('class'):
        return tag['class'] == ['external', 'text']
    # Otherwise don't return anything
    return False