def getLinks(url):
    page = urllib.request.urlopen(url)
soup = BeautifulSoup(page.read())
links = soup.find_all('a', {'class': 'institution'})
How to get all links from website using Beautiful Soup (python) Recursively