def get_a(html, find=''):
    """Finds all the 'a' tags with find in their href"""
    links = []
    for a in html.find_all('a'):
        if a.get('href').find(find) != -1:
            links.append(a)
    return links
def get_a ( html , find = '' ) : links = [ ] for a in html . find_all ( 'a' ) : if a . get ( 'href' ) . find ( find ) != - 1 : links . append ( a ) return links
Finds all the 'a' tags with find in their href