from bs4 import BeautifulSoup


def scrape_links(domain_name, html):
    """Scrape all links from the html document

    Positional Arguments:
        domain_name (str): the domain name of the website you're scraping
        html (str): standard html document
    Return:
        list: all scraped links
    """
    soup = BeautifulSoup(str(html), 'html.parser')
    link_list = []
    for link in soup.find_all('a'):
        link = link.get('href')

        # If link only includes a path to a page on the website (internal link),
        # add the domain name here.
        if domain_name not in link:
            link = f'{domain_name}{link}'

        link_list.append(link)

    return link_list