from bs4 import BeautifulSoup


def get_links(file):
    """Get links from a webpage snapshot."""
    with open(file, 'r', encoding='utf-8') as f:
        soup = BeautifulSoup(f, 'html5lib')
    links = soup.find_all("a", {"class": "proditem__link"})
    return [link['href'] for link in links]